locked
Convert Document Object to Byte Array RRS feed

  • Question

  • User622636719 posted

    Hi All,

    In my web application, I use Interop Visio to create a visio document, something like this : 

                string docPath = @"...\GTTemplate.vst";
                ApplicationClass application = new ApplicationClass();
                application.Documents.Add(docPath);

                 Documents visioDocs = application.Documents;
                Page visioPage = application.ActivePage;

                ....

    Now I want to convert object application.Document to byte array to send to client (download function).

    How can I do this ?

    Thanks.

    Sunday, February 22, 2009 2:17 AM

Answers