Print Preview of Report when Printer is PIN controlled

Posted by: brian.seberle on 5 March 2018, 3:14 am EST

  • Posted 5 March 2018, 3:14 am EST

    Recently my company has instituted PIN control on all print jobs as a security measure. It turns out that since my default printer is set to one of these controlled devices I am having issues in the development of Active Reports 7. It seems that it takes up to 60 seconds to either open the report in a PDF viewer.

    Also I have a local label printer on my desktop and because of the default printer setting the initial loading of the Active Report takes up to the 60 seconds, even though the code behind resets the printer selection.

    Is there any setting I might change in code to eliminate this issue? thank you in advance for any assistance.

  • Posted 5 March 2018, 11:50 pm EST

    Hi,

    Although ActiveReports 7 is a discontinued product and its support has been withdrawn, I’d like to suggest you a solution that might be helpful. Try setting the PrinterName to an empty string in the report’s constructor as below:

    public SectionReport2()
            {
                //
                // Required for Windows Form Designer support
                //
                InitializeComponent();
                this.Document.Printer.PrinterName = " ";
            }
    

    This prevents the report from using the default printer’s settings. If this doesn’t help, then please download ActiveReports 12, which is the latest version and try running your application with this. There have been many performance and memory improvements since version 7. You may download ActiveReports 12 from here - https://www.grapecity.com/en/activereports-developer

    Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels