Print to a file

0

Good morning everyone.

It turns out that I've been trying for a while trying to do what it says in the title and I'm running out of ideas.

A few months ago I developed a print module with the PrintDocument class that draws the lines of text and images that interest me using the printing event combined with the Graphics class of PrintPageEventArgs . Now I would like to adapt this to, instead of printing to a printer, doing it to a file, an image.

I thought if there was some way to extract the document that is generated when you call PrintPreviewDialog , or directly as PrintPageEventArgs , instead of sending the lines to the printer, send them to a file. If there are more ways I would like to know them too.

Thank you very much everyone, greetings.

    
asked by Alvaro Tauroni 05.02.2018 в 19:01
source

0 answers