My example:
Code: Select all
mstrPDFDoc = new MemoryStream();
// Load PDF document into mstrPDFDoc ..
IStreamWrapper istr = new IStreamWrapper(mstrPDFDoc);
object varg1 = istr;
vArr[0] = varg1;
vDataIn = vArr;
object OutPar;
axCoPDFXCview1.SetProperty("Documents.UseStreamsDirectly", 1, 0);
axCoPDFXCview1.DoVerb(null, "OpenDocument", vDataIn, out OutPar, 0);
What does it mean when the documentation says it will “capture the stream object” and use it for any writes that occur?
When I call “CloseDocument” will it release the resources for the stream (including the memory stream)?
Thanks,
Chris