trichview.com

trichview.support




RVPrint to TRVReportHelper


Return to index


Author

Message

Tobias Thörn

Posted: 11/28/2003 14:06:04


I want to transfer the RVPrint (including a header and footer, i.e. not just

RVPrint.rv) to a TRVReportHelper for later transfer to a PDF.


I try this:


  for i := 0 to RVPrint.PagesCount -1 do

  begin

    Stream.Clear;

    RVPrint.SavePageAsRVF(Stream, i);

    Stream.Position := 0;

    rvrh.RichView.LoadRVFFromStream(Stream);

  end;


I get exception EListError, List Index out of bounds (-1).

I thought it might have something to do with the page number so i tried

SavePageAsRVF(Stream, i+1);

And then it pass along happily but I get no data at all when I later

transfer the rvrh to the PDF. (IlPDFLib)


What am I doing wrong?

Or is there an easier way to transfer what I have in RVPrint to a PDF?





Powered by ABC Amber Outlook Express Converter