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:06PM
    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