View previous topic :: View next topic |
Author |
Message |
Tom
Joined: 08 Jun 2007 Posts: 4
|
Posted: Sat Nov 24, 2007 10:54 pm Post subject: MemoryStream: FileHeader is missing |
|
|
Hi,
If I save a document into a MemoryStream and send it via email, the file header (%PDF-1.4 %ÓôÌá % PDFsharp Ver...) is missing. The document cannot be opened, too.
How can I fix it?
ms(i) = New MemoryStream
pdf.Save(ms(i), False)
msg.Attachments.Add(New Attachment(ms(i), "Document.pdf", "application/pdf")) |
|
Back to top |
|
|
Tom
Joined: 08 Jun 2007 Posts: 4
|
Posted: Sat Nov 24, 2007 11:44 pm Post subject: Re: MemoryStream: FileHeader is missing |
|
|
definately gotta get more sleep
ms(i) = New MemoryStream
pdf.Save(ms(i), False)
ms(i).Position = 0
msg.Attachments.Add(New Attachment(ms(i), "Document.pdf", "application/pdf")) |
|
Back to top |
|
|
|