I’ve a issue in report related to print medium selection.
I’ve a report which will be called from a class, I’ve overridden the dialog method in class and added dialog field, when I run the class dialog appears, on right side of the dialog in current option, when I click Options button and select file as a medium and given the filename and after clicking ok, the Print medium shows still as Screen, its not changing to selected medium(file).
If the report directly called from menu item, it works properly. This issue occurs only when we call the report through class.
Could You paste the code runnign the report? It would be much easier to find the problem…
Are You sure the report is not overriding the print medium if not called from a specific menu item? Do You execute reportRun.init() when running the report by class? How are You passing printJobSettings when running a menu item and when running a report by class?
Report which I have designed is simple one with three fields added to design.
When I run the report, a dialog appears and I click on Options button to choose printmedium as printer but it won’t change in printmedium after selecting printmedium and click ok. But when I create a output menuitem and assign that report to menuitem and run the report that time print medium will work properly.
You can run the Tutorial_RunbaseReport class and then a dialog will apper, click on Option button another print dialog will appear then select any other option other than default selected one (in left side there are options like screen, E-mail recipient, file, print archive and printer). And click ok but still in print medium previous value only will be there it will not change whatever you have selected in dialog. Please help.
We can fix this issue by changing code in RunBaseReportDialog class of main method. The prompt is called from the reportRun object instead of the reportDialog object, so need to change the following code,