Print report from preview

Zuzana
Member Posts: 4
I have problem with printing report from preview. If I have preview of report, sometimes I can print it immediately from preview. There is print buttom in left bottom corner of preview. But sometimes there is message that this report cannot be printed form preview.
Why any report can be printed and another cannot?
Is it property of report?
Thanks a lot.
Why any report can be printed and another cannot?
Is it property of report?
Thanks a lot.
0
Comments
-
There is a function called Preview ...
CurrReport.Preview
Check if it is being called in the report.0 -
Thanks for anmwer but I am not sure. I think that Preview function just tell me, whether report is printed in preview mode or goes straight to the printer.
Am I wrong?
I want make preview of the report and than push the button on the preview and print.0 -
i dont now why the button does not want to print somethimes. Navison mistery. I know that is almost always possible to use the top left button to print, or file => print
and the preview flag does what you think it does. tell you if the user hit the preview button.
there is a small possibility that if nav finds the if preview condition somewhere, it doesnt allow you to print. this would make sense for example with a invoice, where not in preview mode it needs to increment the times printed value on the posted invoice header.**********************
** SI ** Bert Van Gestel **
**********************0 -
Search for the command on this forum. There are explanation of the behaviour. It is like Bgestel wrote. When some report increase the counter "Printed", this command is used to be sure that the counter is increased only if user really prints the report and not when just only preview it. And it is why you cannot print from preview if this command is used (because the code was already executed and the counter will not be increased...)0
-
Thank all of you. It was really because of currReport.PREVIEW in the report. Big mystery is solved :-)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