rpt.Document.Print takes long to display printer dialog

Posted by: softcomlimited on 12 June 2020, 12:15 am EST

    • Post Options:
    • Link

    Posted 12 June 2020, 12:15 am EST

    Mr Mohit,

    When I do

    Dim rpt As GrapeCity.ActiveReports.SectionReport
    rpt.Document.Print(True, True, False) 
    

    the printer dialog takes a long time to display.

    In a previous post you gave me a solution for another problem that might help here. Can you tell me if this is the correct syntax that would do the same as above?

    rpt.Document.Print(GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog Or GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog Or GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog)
    

    I ask because I am not getting the progress dialog.

    Regards

    Brian

  • Posted 12 June 2020, 12:34 pm EST

    Hello,

    Can you try with the following syntax:

    Document.Print(GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog);

    Thanks,

    Mohit

  • Posted 12 June 2020, 12:41 pm EST

    Mr Mohit,

    Just UseStandardDialog?

    No need for ShowPrintProgressDialog?

    OK, I’ll try it.

    Thanks for the reply.

    Brian

  • Posted 12 June 2020, 1:50 pm EST

    Mr Mohit,

    When I use only UseStandardDialog it prints without giving the user the dialog to choose the printer, I want the dialog to show before printing.

    Regards

    Brian

  • Posted 15 June 2020, 4:48 am EST

    Hello,

    Sorry for the confusion,

    Have you tried in the simple project with the following syntax:

    rpt.Document.Print(GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog Or GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog Or GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog)
    

    Is it working in a simple project?

    Thanks,

    Mohit

  • Posted 15 June 2020, 8:56 am EST

    Mr Mohit,

    As I mentioned originally, it was seeming that I was not getting the progress dialog when I tried

    rpt.Document.Print(GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog Or GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog Or GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog)

    and I was asking if this was the correct syntax ?

    If it is correct I will go ahead using it since the PrintDialog comes up faster, instead of rpt.Document.Print(True, True, False) but I would like to get the PrintProgress to show.

    Regards

    Brian

  • Posted 16 June 2020, 2:40 am EST

    Hello,

    and I was asking if this was the correct syntax ?

    Yes, it is the correct syntax. I am able to see the PrintProgess dialog at my end with the same syntax.

    Are you facing this issue only with one application or with all applications?

    Thanks,

    Mohit

  • Posted 16 June 2020, 9:37 am EST

    Mr Mohit,

    The problem with the print dialog taking long just started happening in recent days in my dev environment. I am not too sure why so in the meantime I was looking for a workaround and just needed to make sure the syntax is correct for the progress to show. If it is correct then I am guessing the progress not showing might be a symptom of the underlying issue but at least I don’t have to wait 2 minutes for the print dialog to show and I can continue to figure out the main problem.

    Thanks

    Brian

  • Posted 17 June 2020, 3:00 am EST

    Hello,

    I understand the problem. Sorry to mention that I can’t help until I replicate the issue at my end. Please let me know if you have more queries on this.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels