RB + Infopower
Hi,
They forgive for my English.
I am testing the linking of the RichText of infopower and ReportBuilder.
I obtained to install successfully and is functioning.
What it happens is the following one: I insert a RichText in the report, go
in editing it opens MailMerge publisher of the RB, then I have that (click
with the right of mouse) to edit it again to open the publisher of the
Infopower and thus to have more options as to justify that I am needing.
He would like a way that it directly edited ppRichText in the Infopower
without opening the Publisher of the ReportBuilder. He could pass me as I
can make?
thanks,
Gustavo
They forgive for my English.
I am testing the linking of the RichText of infopower and ReportBuilder.
I obtained to install successfully and is functioning.
What it happens is the following one: I insert a RichText in the report, go
in editing it opens MailMerge publisher of the RB, then I have that (click
with the right of mouse) to edit it again to open the publisher of the
Infopower and thus to have more options as to justify that I am needing.
He would like a way that it directly edited ppRichText in the Infopower
without opening the Publisher of the ReportBuilder. He could pass me as I
can make?
thanks,
Gustavo
This discussion has been closed.
Comments
There are two options in your case.
1. Create a custom RichText editor for ReportBuilder and replace the
existing one. This custom editor would contain all the current
functionality and the added features you need from Infopower.
2. Create your richtext in using Infopower and then transfer the rtf code
to ReportBuilder using the method described below.
------------------------------------------------
Tech Tip: Copy RTF data from TRichEd to TppRichText
------------------------------------------------
You can copy RTF data from Delphi's TRichEd to ReportBuilder's TppRichText
control by using an intermediate memory stream:
var
lRTFStream: TMemoryStream;
begin
{create temp memory stream}
lRTFStream := TMemoryStream.Create;
{save the TRichEd's rtf data to the memory stream}
RichEdit1.Lines.SaveToStream(lRTFStream);
{load the rtf stream to the TppRichText}
lRTFStream.position := 0;
ppRichText1.LoadFromRTFStream(lRTFStream);
{free the memory stream}
lRTFStream.Free;
end;
Note: An alternative method would be to use RichEdit1.Lines.SaveToFile and
TppRichText.LoadFromFile.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com