...but it is portrait!
I am using the PrintDocument object to generate reports in my desktop application written in vb.net and C# using VS 2017. If I choose an actual printer from the print dialog the resulting output is in landscape since I set the page settings that way.
However, if I choose "Microsoft Print to PDF", the resulting PDF file comes up as Portrait when I go to print it later. Changing it to Landscape at that time, results in a properly oriented report.
So, my question is, how do you transfer the PDF's desired orientation into the actual PDF file that is created programmatically?
I have provided a PDF document with some screenshots of my code and the resulting output. Maybe someone can see what I am doing wrong.
Thanks in advance,
Jerry
Jerry Scannell
I am using the PrintDocument object to generate reports in my desktop application written in vb.net and C# using VS 2017. If I choose an actual printer from the print dialog the resulting output is in landscape since I set the page settings that way.
However, if I choose "Microsoft Print to PDF", the resulting PDF file comes up as Portrait when I go to print it later. Changing it to Landscape at that time, results in a properly oriented report.
So, my question is, how do you transfer the PDF's desired orientation into the actual PDF file that is created programmatically?
I have provided a PDF document with some screenshots of my code and the resulting output. Maybe someone can see what I am doing wrong.
Thanks in advance,
Jerry
Jerry Scannell