P
Przemek M. Zawada
Dear Ladies & Gentleman!
The base of my point is to create a virtual printer, which invoked by
an window.print() JavaScript command, would parse input from viewed
webpage (composed in XML format - sample 1), and create a
PrintDocument, which will again prompt with PrintDialog for selecting
another printer, which will finally print requested document on real
paper.
Questions:
1. The problem is not with parsing XML document naturally, because
it's pretty easy, but creating, or provoking Windows for creation of a
virtual printer (visible in 'Printer & Faxes'). How it's possible?
2. Is it even possible in C#? In my opinion I need to create some
'driver' for my virtual printer, which would be compatible with
Windows nature, but how shall I start?
3. Where shall I look for any man-help? Does anyone have done it
already?
Sample 1:
<printerData>
<head1> Hello World </head1>
<docBody>
<![CDATA[
My document data here
]]!>
</docBody>
<footer1> My footer text </footer1>
</printerData>
Thank you very much for all help!
All the best,
Przemek M. Zawada
The base of my point is to create a virtual printer, which invoked by
an window.print() JavaScript command, would parse input from viewed
webpage (composed in XML format - sample 1), and create a
PrintDocument, which will again prompt with PrintDialog for selecting
another printer, which will finally print requested document on real
paper.
Questions:
1. The problem is not with parsing XML document naturally, because
it's pretty easy, but creating, or provoking Windows for creation of a
virtual printer (visible in 'Printer & Faxes'). How it's possible?
2. Is it even possible in C#? In my opinion I need to create some
'driver' for my virtual printer, which would be compatible with
Windows nature, but how shall I start?
3. Where shall I look for any man-help? Does anyone have done it
already?
Sample 1:
<printerData>
<head1> Hello World </head1>
<docBody>
<![CDATA[
My document data here
]]!>
</docBody>
<footer1> My footer text </footer1>
</printerData>
Thank you very much for all help!
All the best,
Przemek M. Zawada