Hallo,
The class GridTableView supplies the method ExportToPdf(). This method writes the generated PDF-Data to the Page.Response. What I need is a method/solution which doesn't writes to Page.Response and returns a byte-Array or Stream which represents the PDF. Something like that:
public Byte[] ExportToPdfAsByteArray();
Does anyone know how to realize that?
BTW: I have seen the example from Telerik where a method was attached to the GridExporting-Event to extract the PDF-Data from the GridExportingArgs and write the pdf to a file. But that isn't a solution for me because it still writes to HttpResponse and it does a Response.Redirect to the actual page.
Thanks
Oliver
The class GridTableView supplies the method ExportToPdf(). This method writes the generated PDF-Data to the Page.Response. What I need is a method/solution which doesn't writes to Page.Response and returns a byte-Array or Stream which represents the PDF. Something like that:
public Byte[] ExportToPdfAsByteArray();
Does anyone know how to realize that?
BTW: I have seen the example from Telerik where a method was attached to the GridExporting-Event to extract the PDF-Data from the GridExportingArgs and write the pdf to a file. But that isn't a solution for me because it still writes to HttpResponse and it does a Response.Redirect to the actual page.
Thanks
Oliver