Is it possible to convert .QRP into .RTF ? - Delphi
This is a discussion on Is it possible to convert .QRP into .RTF ? - Delphi ; 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 ...
-
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
-
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
-
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