Duncan
Fri Feb 15 13:01:47 CST 2008
I would suggest maybe printing it to XPS - using the stuff built in to the
latest .NET framework.
An XPS document is just XML and jpegs in a structured document so it should
be fairly easy to divide it and store it in a database?
"HaySeed" <HaySeed@discussions.microsoft.com> wrote in message
news:ECDF9D1D-735A-4BA1-8AE0-3784DFCC2064@microsoft.com...
> Thanks for the response Duncan,
>
> I know I can create an output file which can be streamed into the DB but
> my
> ultimate goal is to reconstitute the PrintDocument class. Is this
> possible????
>
> If not, my second choice would be to print it to PDF and stream that file.
> I have used a Win2PDF print driver in the past to do create the PDF output
> but I'm wondering oif thereis any "ToPDF" functionality built into .Net
> that
> you are aware of ?
>
>
>
> L
>
> "Duncan Jones" wrote:
>
>> You can save the EMF spool file content ( see
>>
http://www.codeproject.com/KB/printing/EMFSpoolViewer.aspx ) or print to
>> PDF
>> or XPS ..?
>>
>>
>> "HaySeed" <HaySeed@discussions.microsoft.com> wrote in message
>> news:66A2D2E6-8B94-4973-9967-65E7013C1214@microsoft.com...
>> >I need to save print output to the database for future retrieval.
>> >
>> > I assumed that the best way to do this was to use a BinaryFormatter to
>> > convert my PrintDocument to a byte array - strore the binary stream -
>> > then
>> > deserialize it upon recall.
>> >
>> > Unfortunately the PrintDocument is not serializable.
>> >
>> > How can I store the completed PrintDocument to the DB?
>>