ResultBuffer property

[Top]  [Chapter]  [Previous]  [Next]

Applies to



property ResultBuffer: Variant;


byte[] ResultBuffer;


This property provides the result of the PDF creation as memory buffer (variant array of bytes).


Also see the "ASP TransferHelper" - it avoids flooding the server.


Note: RTF2PDF may be only used on a web server when you have the Server License of RTF2PDF / wPDFControl!


Example: (Response is the ASP object defined in event Page_Load.)


 // Initialize pdf creation

 rtf2pdf.PdfCreator.PDFFile = "memory";

 rtf2pdf.PdfCreator.FontMode = 0;  // embed all fonts!



 // remove any output


 // Add new HTTP header

 Response.ContentType = "application/pdf";

 Response.AddHeader("Content-Type", "application/pdf");

 // Set a file name which is displayed


 // Write the PDF data



[idh_rtf2pdf_resultbuffer.htm]    Copyright © 2007 by WPCubed GmbH