Tom Chiou wrote:
Hi,
I was wondering if there is anyway to write PDF directly to the screen instead of writing it to file?
Thanks, Tom
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Hi Tom,
The following code is in vb.net but you change the content type and fill the page with the PDF image.
Code in Web Form.....
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'********** Assign Engine Object
_EConn = Session("EConn") '********** Get Details
Dim objStream As MemoryStream = (Put Binary stream here!)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.BinaryWrite(objStream.GetBuffer)
Response.Flush()
Response.Close()
End Sub
End Class
have fun!
Peter Bass
======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================
--- Begin Message ---Tom Chiou wrote:
Hi,
I was wondering if there is anyway to write PDF directly to the screen instead of writing it to file?
Thanks, Tom
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Hi Tom,
The following code is in vb.net but you change the content type and fill the page with the PDF image.
Code in Web Form.....
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'********** Assign Engine Object _EConn = Session("EConn")
'********** Get Details Dim objStream As MemoryStream = (Put Binary stream here!) Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.BinaryWrite(objStream.GetBuffer) Response.Flush() Response.Close() End Sub End Class
have fun!
Peter Bass
--- End Message ---
