Serialization of not Serializable Object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to serialize a PrintDocument to send it via remoting. How can I send a
PrintDocument via remoting ?
 
You will have to create a representation of the object as a set of properties
and reconstitute it on the other side. The issue with things like
PrintDocument is there are so many things that can go in. While it could be
made serializable, I assume, it would be extremely time consuming with
limited return.

You can move items into COM (via Component Services, DCOM, etc.) and send
via that method. The marshalling may end up killing you, but it is a way
aruond remoting a non-serializable object.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top