Export PDF to Stream

Hi Guys,

Let me say that you guys rock. I love using fastreports :-)
I do have an issue now though. Currently I export my report to pdf onto local disk and then Adobe previews it. However, due to circumstances I wish to now
export the pdf to a stream instead of a file. Is this possible via fast report?

Awaiting your speed response on this as I need to rollout out by next week :-)
So your assistance would be greatly appreciated >

Comments

  • edited 6:47AM
    Try to use this:

    TMemoryStream* pMem = new TMemoryStream();

    Report->PreviewPages->SaveToStream(pMem);
    pMem->Position = 0;

    //do whatever with that stream
    ...
  • Thanks for the response but I have tried that and the thing is that I use the PDF export filter in Fast Report to export my PDF to Disk. But now I want to Export the PDF from the export filter to a stream.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.