none
Autoprinting in memory RRS feed

  • Question

  • http://msdn.microsoft.com/en-us/library/ms252091%28VS.80%29.aspx

    Is there a way to do this in memory rather than writing it to a file?  My applications reside on a network with restricted write permissions.  I know there is a memory stream, but I don't know how to use it or if that is the appropriate solution.

    Thanks


    Wednesday, July 14, 2010 3:53 PM

Answers

  • I simply changed the file stream to a memory stream with no other changes and it worked for me.

    Changed:
    Dim
    stream As Stream = _
    New FileStream("..\..\" + _
    name + "." + fileNameExtension, FileMode.Create)

    TO:

    Dim stream As Stream = _
                New MemoryStream()
            m_streams.Add(stream)

     

    Hopefully that helps someone else too.

     

    • Marked as answer by James12314909 Wednesday, July 14, 2010 6:43 PM
    Wednesday, July 14, 2010 6:43 PM