Set Default path for "Save to Print OutPut As" savefiledialog

Posted by: trisha.b.sinha on 14 September 2020, 1:30 am EST

    • Post Options:
    • Link

    Posted 14 September 2020, 1:30 am EST

    Hi,

    I want to set default path for “Save to Print Output As” Save File dialog box while saving a pdf.

    Thanks.

  • Posted 14 September 2020, 3:37 pm EST

    Hello,

    There is no way to set the default path. However, you can choose the filename with default path using the following line of code:

     viewer1.Document.Printer.PrinterSettings.PrintFileName = @"D:\AR_Vue_sample\test.pdf";
                viewer1.Document.Printer.PrinterSettings.PrintToFile = true;
    
    

    Hope it helps.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels