I have a Pdf document stored in my directory is it possible to print it while using the PrintDialog control in order to select the printer to use.
I have a Pdf document stored in my directory is it possible to print it while using the PrintDialog control in order to select the printer to use.
You can use "printto" verb, but the AcroRd32.exe process remains at end
(you can add a timer or a thread to kill the process after the printing is done...)
Test without killing AcroRd32 process =>
PrintDialog printDialog1 = new PrintDialog();
if (printDialog1.ShowDialog() == DialogResult.OK)
{
Process p = new Process();
p.StartInfo.FileName = "e:\\test.pdf";
p.StartInfo.Verb = "printto";
p.StartInfo.Arguments = "\"" + printDialog1.PrinterSettings.PrinterName + "\"";
p.Start();
}
8 people are following this question.
Insert a node as child ,before or after a node in nested dynamic JSON Node using C#
Visual Studio 2019: Undefined behavior in a C++/CLI wrapper project.
Example for how to get Package Metadata from Azure DevOps Rest-Api Artifacts using c#
How to collapse individual nested grids/stackpanels inside a grid?