M
Microsoft News
Greetings community at large.
I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.
But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to send
either to the printer.
the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )
is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?
I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text ...
I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..
Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?
Regards.
I have a c# app that generates a PDF file.
I have a printer that prints PDF natively.
But I cannot figure out how to programatically print in C# ... I can
generate the PDF as a file or a stream .. but cannot figure out how to send
either to the printer.
the only events I can use seem to be e.Graphics.DrawImage( ) or
e.Graphics.DrawString( )
is there a way to print a stream to a printer ? or a streamReader or
binaryStream ?
I thought that as a PDF is 'kind-of' a postscript file I could use
e.Graphics.DrawString( ) .. not surprisingly I got several pages of text ...
I can just drag and drop my PDF onto the printer it hops in the queue and
prints wonderfully ( no need to use acrobat reader to print) ..
Is perhaps this the way to go to 'programatically' push the file onto the
print queue ?
Regards.