Differences between Preview and Print Report

MaierM
Member Posts: 6
Hi everyone!
I made a custom version of Report 206.
When I click on Preview, these fields appear:

but when I click on Print on PDF or on paper, they don't:

Does anyone encounter this situation? Has it a solution?
Thanks!
I made a custom version of Report 206.
When I click on Preview, these fields appear:

but when I click on Print on PDF or on paper, they don't:

Does anyone encounter this situation? Has it a solution?
Thanks!
0
Comments
-
Hi Maier,
NAV "knows" that it's in Preview or print mode, so my first suggestion would be to check if nothing has been programmed to display only if it's in Preview mode.
Are the captions in Multi-language?
Ernsthttp://www.vssolutions NAV-Outlook synchronisation re-invented.0 -
evandeveerdonk wrote:Hi Maier,
NAV "knows" that it's in Preview or print mode, so my first suggestion would be to check if nothing has been programmed to display only if it's in Preview mode.
Can you explain more clearly? :oops:Are the captions in Multi-language?
Ernst
Yes, they're in english and italian languages.0 -
ok, so the captions do not lead us to a solution.
You can programm:
IF CURRREPORT.PREVIEW then
..
..
the evidence suggests that something is happening there. (Although chances are slim, but we have to rule it out as a possible cause)
So you might check the code in the report
Ernsthttp://www.vssolutions NAV-Outlook synchronisation re-invented.0 -
Which version of NAV are you using?
If you are developing a RDLC report, this problem occur in the report header with fields that you retrieve from the DataSet. The header does not have an assigned DataSet and therefore cannot query data from your dataitems unless you tell it to specifically. What it can do is to retrieve Report items from the current page it is drawing.
In preview mode the entire DataSet is available at any given time, which is why header has data. In print mode the DataSet is only available per page and therefore only available when you specifically define the dataset in the header.
The solution is to either include your header fields and captions in your data fields in the report and the reference the report items or specifically define the DataSet in your header items. Your header textbox expressions should be one of the following:ReportItems!<YOURREPORTFIELD>.Value //Where <YOURREPORTFIELD> is a field in the body of your report
LAST(Fields!<YOURDATAITEMVARIABLE>.Value, "DataSet_Result") // Where DataSet_Result is the default name of the dataset generated by NAV
0 -
It was a stupid problem of visualization. I solved.
Thanks all!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions