Hi everyone,
Is not there a way to preview a report in the C/AL code. I designed a report that does not require any options or any filters or any sorting schema. I can print it directly without letting it show its request form but I cannot preview it. Just showing up a form with only buttons is a wierd, non-Navision-looking situation.
If there is no way to prevent this technically, what can I do as respects aesthetics.
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005
0
Answers
http://navisionfreak.blogspot.com/
Justas Janauskas
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
WshShell is an Automation variable with subtype 'Windows Script Host Object Model' and object of WshShell. Thus, subtype is 'Windows Script Host Object Model'.WshShell
So, for Spanish and English, you can do this:
If you want to control the behavior of this, you can create a function that you can call before you run the report, so that if run default it shows the request form, otherwise it will hide it if you call the function. In this case, you have a global variable, say HideForm - Boolean, and you have a global function as so that does HideForm := TRUE;
The code in the Report - OnOpenForm() would then be:
Good luck.
Dynamics NAV Developer since 2005
Dynamics NAV Developer since 2005