Hello,
I try to insert a string at the current cursor position. Therefore i use the InputString-method. The text is allways be insertetf at the beginnung of the document, not at the cursor position.
Can anybody help?
Gerhard
Hello,
I try to insert a string at the current cursor position. Therefore i use the InputString-method. The text is allways be insertetf at the beginnung of the document, not at the cursor position.
Can anybody help?
Gerhard
Hi,
how can i set the position of the cursor in the upper left corner programatically in a TWPRichText Version 4.x
Thanks
Gerhard
Julian,
i tried what you sad and initialized 2 variables in the OnCreate Event of the main frm, but it still doesn't work. I added a Listbox to "debug" the values of MargT and i could see that the values are different for Page1 and the rest, but it did not take any effect when printing. Here my actual verison of source code:
if PageNr = 0 then
MargT := iTopMargin2
else
MargT := iTopMargin;
lbDebug.Items.Add('Page ' + IntToStr(PageNr) + ', MTop ' + IntToStr(MargT));
Please help.
Gerhard
Hi Julian,
this is what i tried, but it doesn't work. Here the part of my program:
procedure TformMain.WPRichText1MeasurePage(Sender: TObject;
PageNr: Integer; var PageH, MargT, MargB: Integer);
begin
if (PageNr > 0) and (theIni.ReadInteger('Settings', 'TxtTopMargin2', 0) > 0) then
begin
MargT := theIni.ReadInteger('Settings', 'TxtTopMargin2', 0);
end
end;
Can you tell me what's wrong?
Greetings
Gerhard
Hi,
how can i use a different top margin from the 2. page. E.g. on the first page i need 50 mm top margin, form the 2. to the rest i need only 25 mm top margin.
Everey advice is very appreciated!
Thanks
G. Weber
Thank you very much! It works fine!
Best regards
G. Weber
Hi,
is it possible to print text which is not part of the WPRichText-Control when wpTools are printing. I want to insert an adress on a fixed position, when printing without using fields or /and mailmerge.
Thanks
Gerhard Weber