Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

How can I set PrintDialog's options in background.

$
0
0

Hi everybody.

 

I want to print something with Printer of "Microsoft Print to PDF" and file name of "myfile.pdf".  But I do not want to show any dialog box.

/* This is a code displaying PrintDialog and SaveDialog */

if ( PrintDialog->Execute() ) {

    Printer->BeginDoc();

    // some code

    Printer->EndDoc();

}

 

Is there anybody knows how to do this?

 

Thanks.

 

 


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>