U
U
Uncle Bogdan2021-04-19 15:37:17
C++ / C#
Uncle Bogdan, 2021-04-19 15:37:17

How to print a pdf document?

There is a .pdf document, how to call at least the print window in the program?
The solution with CodeRoad did not help. (

Solution with CodeRoad
CreateTempFile();
            Process p = new Process();
            p.StartInfo = new ProcessStartInfo()
            {
                CreateNoWindow = true,
                Verb = "print",
                FileName = @"C:\Program Files (x86)\Arbitr\Temp\TempFile.pdf"
            };
            p.Start(); // Пишет что не удается вызвать эту программу

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-04-19
@firedragon

Try this method. https://www.tek-tips.com/viewthread.cfm?qid=1686563
By the way, yours should also work if you set your printer as the default printer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question