+ Reply to Thread
Results 1 to 3 of 3

Is it possible to convert .QRP into .RTF ?

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    0

    Default Is it possible to convert .QRP into .RTF ?

    I have QuickReport report saved as .QRP file.

    Is it possible to convert it into .RTF (as I can export
    created in code TQuickRep through TQRRTFExportFilter) ?

    Or .QRP is graphic format and hence it does not contain
    any convertible information ?


    Oleg Subachev



  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    0

    Default Re: Is it possible to convert .QRP into .RTF ?

    On Mon, 10 Dec 2007 12:53:13 +0500, Oleg Subachev wrote:

    > Is it possible to convert it into .RTF (as I can export
    > created in code TQuickRep through TQRRTFExportFilter) ?


    You should be able to load a QRP file quite easily with something like
    this:
    with QRPrinter do
    begin
    Title := 'Some Title';
    EnableSaveBtn := False;
    Load(filename);
    if (UserWantsToPrint)
    then Print
    else Preview;
    CleanUp;
    end;

    It should be quite easy to export it to a RTF file instead of printing
    it.

    --
    Marc Rohloff [TeamB]
    marc -at- marc rohloff -dot- com

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    0

    Default Re: Is it possible to convert .QRP into .RTF ?

    > You should be able to load a QRP file quite easily with something like
    > this:
    > with QRPrinter do
    > begin
    > Title := 'Some Title';
    > EnableSaveBtn := False;
    > Load(filename);
    > if (UserWantsToPrint)
    > then Print
    > else Preview;
    > CleanUp;
    > end;
    >
    > It should be quite easy to export it to a RTF file instead of printing
    > it.


    Yes, I use the same technique to print or preview QRP file.
    But QRPrinter does not support exporting to filter as QuickRep does.

    If you try to load wrong file in QRPrinter, you get EInvalidGraphic
    exception.
    So QRP file is graphic, it cannot be converted to text.


    Oleg Subachev



+ Reply to Thread