Category: Knowledge Base

Installing the Service Tier Add-in

To run the ForNAV reports, you need the ForNAV DLL on your NAV service tier. The service tier is the machine that runs the NAV server process which users connect to. On a service tier machine, the NAV service is typically installed in your program files folder. The add-in folder is a subdirectory to service

Continue Reading

Working with ForNAV reports in the Custom Report Layouts window

To take full advantage of the ForNAV Converter and the ForNAV Designer, you must have a Microsoft Dynamics NAV developer license – either the “Application Builder” or the “Solution Developer”. This is due to restrictions in Microsoft licensing policy, because we use the .txt-file export/import.   With a standard customer Dynamics NAV license (that is,

Continue Reading

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