The the bar charts I have on a report are blurry. I have other reports with bar charts and they are high resolution. I can't see any differences in the settings between the two. Does anybody have any insight into why my bar chart is low resolution?
Also, I want to automatically print a report each time an event occurs that I track in the gateway. I currently use report viewer with a client change tag and an open window to automatically print the report. Is it possible to print the report from a gateway script? I notice, at least for my app, if the window gets minimized the report viewer print no longer works. I had to setup a dedicated PC that opens a window that processes all my auto print reports. There must be a cleaner way.
Connect a printer to the gateway. Use a gateway tag change event to run system.report.executeAndDistribute()
to print to the gateway's printer.
Hi compuzak,
For the blurry bar charts, check the resolution settings in your report design, as differences in DPI or scaling can lead to blurriness. Ensure both reports are using the same resolution and try exporting to see if that improves quality. Regarding automatic printing, pturmel's suggestion of connecting a printer to the gateway and using system.report.executeAndDistribute()
on a tag change event is a good solution. This should simplify the process and eliminate the need for a dedicated PC. Also, verify your printer drivers and settings on the gateway to ensure everything is configured properly.
Thank you, I will check both these things out soon! Appreciate the help.
Be aware that the printer needs to be reachable by the user account that runs the gateway service. In Windows, by default, that is LOCAL_SYSTEM
, which has no such privileges. Most change that to a dedicated domain user and configure the printers for that.
Thank you, we are packing for another week or so and then have a break. I will try changing the ignition startup account and setup the printers for it then. For now, to be safe, I am just using the old method of a dedicated PC to print. But this will be a huge improvement, no doubt about that. Thanks for your help.