Category: Knowledge Base

Adding different watermarks to each page

Sometimes you want to have different watermarks in the report output. To do this, you use the ReportForNav.Watermark.Image.Load(fromStream) function.   It is important that you call the function before the report runtime starts printing a new page (because the watermark will be printed before that). If you call the function on a section trigger on

Continue Reading

Windows 10 build 1709 Fall Creators Update

When Microsoft released the Windows 10 Fall Creators Update in late 2017, the ForNAV Designer began to freeze occasionally when using the property window. The freeze typically happened when using properties with a drop-down value selector. A fix for this problem was introduced in Reports ForNAV version 3.0.0.1335. Keywords: fornav designer, freeze, hangs, crash  

Continue Reading

Add a Chart to a Report

To add a chart to a report: Add columns to the data table on the data item that you want to feed data to the chart control with. For example: Create a footer section for the data item. When you drag and drop a chart control for a footer section, the Chart Wizard appears. Select

Continue Reading

Using Device Fonts

Label printers or virtual printers (Fax, document capture, etc.) sometimes need text printed out with a special font that is not a real font, in order to control the printer. These fonts are called device fonts. To set a device font in a control in the ForNAV Designer: Add the statement CurrControl.DeviceFont = “<device font

Continue Reading

Paper Trays, Paper Bins, Paper Sources

The paper tray selection (also called the paper bin or the paper source) in ForNAV reports can be controlled with the following function call: C/AL: ReportForNav.PrinterSettings. PaperSource(<TrayNo>,<PageNo>); JavaScript: CurrReport.PrinterSettings. PaperSource(<TrayNo>,<PageNo>);     With the special cases: PageNo = 0: Default PageNo = -1: Last page     You can also still set up the paper

Continue Reading

Print Logos on Document Reports

The default for printing the logo on ForNAV document reports is to only print the logo when printing to PDF or doing a preview To always print the logo, you must change the PrintLogo function on the OnPreReport JavaScript event from: function PrintLogo() {   if (CurrReport.PrinterSettings.PrintTo==’PDF’) {     return true ;   }  

Continue Reading

New functions on Dataitem tables

string GetCaption() – returns the caption of the table int GetOptionValue(string ExternalFieldName) – returns the value of an option as integer string GetFilter(string ExternalFieldName) – returns a field filter string GetFilters() – returns the table filter CalcFields(ExternalFieldName1[,ExternalFieldName2,..]) – calculates the value of calc fields on a record SetAutoCalcFields(ExternalFieldName1[,ExternalFieldName2,..]) – autocals the value of calc fields

Continue Reading

Prepending and appending PDF files to a ForNAV report

Today, ForNAV already has the capability to merge a report with one or more PDFs when using the Bullzip PDF printer:  http://www.fornav.com/knowledge-base/how-to-add-a-pdf-document-to-a-sales-invoice/ However, this method is limited to creating PDFs and not printing directly to a printer. In addition, the PDFs can only be inserted before or after an entire report and not before or

Continue Reading

Installing objects in ForNAV ISV granule area

When installing the ForNAV objects in the ForNAV ISV granule (6188500 Reports ForNAV) area, you are not able to import a txt-file unless you already have the objects in your database. Below you will find “blank” ForNAV objects for NAV 2016, NAV 2017 and NAV 2018. You need to import these into your NAV database

Continue Reading

Upgrading to a new ForNAV version

This will show you how to upgrade your existing ForNAV reports to run on a newer ForNAV version. If you receive a new version for ForNAV, you often want your existing ForNAV reports to run on the new version. This can be done in two different ways depending on how many of your reports you

Continue Reading