hi there, amm i have a bug found i think…
here is the prob that i found, i have this customized control.
now on the control i added a property
on the main form i added the control name of the control is PDFView1Public property PDFS as StreamGetReturn m_pdfstreamEnd GetSet(value As MemoryStream)m_pdfstream = valueEnd SetEnd Property
and on the button1_click event of the form1 i added the code:
PDFView1.PDFS = stream
'this “stream” is from msg.attachments.item(0).save(stream) or the aspose.email.outlook
now on the control i have a button and i have this code on the click event:
Dim pdfdoc As Aspose.Pdf.Document = New Aspose.Pdf.Document(m_pdfstream)
SaveFileDialog1.Filter = “PDF (.pdf)|.pdf”
If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Windows.Forms.Cursor.Current = Windows.Forms.Cursors.WaitCursor
pdfdoc.Save(SaveFileDialog1.FileName)
End If
but when i click the button the error says: Stream was not readable
and the VS highlights the line:
Dim pdfdoc As Aspose.Pdf.Document = New Aspose.Pdf.Document(m_pdfstream)