Richedit help needed !!!!!! very urgent !!!!!!!!!!!!!!
Report Builder + InfoPower richedit
when 1st 'Enter' key is added to make the following line go to the next
page,
only a new character will be displayed in the second page. (but not the
whole line) ???
when 2nd 'Enter' key is added...one more new character is display in next
page.
e.g. paragraph
abcdefghijklmnopq
when 'enter' key is added before the 'abcdefghijklmnopq'
only 'q' goes to the second page.
when 2 'enter' key is added,
only 'pq' is displayed in second page, why ???
why not the whole line goes to the second page ??
when 1st 'Enter' key is added to make the following line go to the next
page,
only a new character will be displayed in the second page. (but not the
whole line) ???
when 2nd 'Enter' key is added...one more new character is display in next
page.
e.g. paragraph
abcdefghijklmnopq
when 'enter' key is added before the 'abcdefghijklmnopq'
only 'q' goes to the second page.
when 2 'enter' key is added,
only 'pq' is displayed in second page, why ???
why not the whole line goes to the second page ??
This discussion has been closed.
Comments
'Enter' key is added'. Are you trying to insert a newline character at
runtime or is this a design time problem?
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
looks like 'enter' never happened, but 'space' is added becoz the next page
will add 1 more character,
but not 1 line.
example
111adfsdfl;jsdl;fa;sdfkj;lasdf
222aks;ldfj;sdfj;asdf
333as;dfa;lsdfasd;
444;asdfads;fjsda;xyz
if i press 'enter' key (run time) before the '333.........'
then '444........' suppose to go to next page
but only the 'z' go to next page,
if i press another 'enter' key before the '333..........'
then the next page will show 'yz'
it suppose to be whole line,
how to solve this problem, thanks ?
everything shows correctly for the first time, but when i do some
modification on the richedit,
then next preview in report builder will display wrongly.
this wasn't happen in the center, it only happen when the line move to next
page.
i am using TppRichText (infopower richtext for report builder)
"Alexander Kramnik (Digital Metaphors)" wrote
provide a sample project that reproduces the error?
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
i m using the 'ppWWRichEd' in the uses clause to enable print out Image in
RichEdit.
the rtf i used consist of Bitmap and characters.
Delphi 5 + Infopower 2000 + Report Builder 5.5
infopower wwdbrichedit in the form1
TppRichText in the detail band with stretch (no data source) report.
when i press 'enter' in wwdbrichedit(in the edit dialog) to make the line go
to next page,
but there is only a character come out in the preview of the report.
----------------------------
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, wwriched, ppComm, ppRelatv, ppProd, ppClass, ppReport,
ppPrnabl, ppStrtch, ppRichTx, ppBands, ppCache, ppWWRichEd;
type
TForm1 = class(TForm)
ppReport1: TppReport;
wwDBRichEdit1: TwwDBRichEdit;
ppHeaderBand1: TppHeaderBand;
ppDetailBand1: TppDetailBand;
ppFooterBand1: TppFooterBand;
ppRichText1: TppRichText;
Button1: TButton;
procedure ppReport1BeforePrint(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.ppReport1BeforePrint(Sender: TObject);
var st: TMemoryStream;
begin
ppReport1.PrinterSetup.MarginLeft := 0.5;
ppReport1.PrinterSetup.MarginRight := 0.5;
ppReport1.PrinterSetup.MarginTop := 0.5;
ppReport1.PrinterSetup.MarginBottom := 0.5;
st := TMemoryStream.Create;
try
wwDBRichEdit1.Lines.SaveToStream(st);
st.Position := 0;
ppRichText1.LoadFromRTFStream(st);
finally
st.Free;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.DeviceType := 'Screen';
ppReport1.Print;
end;
end.
----------------------------------------
"Alexander Kramnik (Digital Metaphors)" wrote
code but was still unable to reproduce the described behavior, everything
worked correctly. You can try upgrading to RB6.03 to see if the problem
persists (email info@digital-metaphors.com). You can download a trial
edition of RB6.03 from www.digital-metaphors.com.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
thanks for your help.
but i m still facing the same problem.
can i send the code to u and u check it for me ??
thanks.
"Alexander Kramnik (Digital Metaphors)" wrote
in message news:3cf3a760$1@dm500....
your
in
line
wrote
please
next
to
character
1. font or format in the rtf coz that behaviour
2. special code in rtf coz that behaviour
but in my case,
when i press enter to make the line go to next page, the problem comes up.
thanks for your help.
"Alexander Kramnik (Digital Metaphors)" wrote
in message news:3cf3af8b$1@dm500....
wrote
inserted
problem