Hi,
I am using:
Letter.BeginPrint('Batch Print');
for I:=1 to ...
begin
...
Letter.Print;
...
end;
Letter.EndPrint;
How can I use Letter.PrintDialog once to choose the printer, tray, etc once and then use it's settings for all prints?
Ken
Hi,
I am using:
Letter.BeginPrint('Batch Print');
for I:=1 to ...
begin
...
Letter.Print;
...
end;
Letter.EndPrint;
How can I use Letter.PrintDialog once to choose the printer, tray, etc once and then use it's settings for all prints?
Ken
If I just use AsANSIString('HTML') I do otherwise I don't!
Hi,
I am getting the HTML text for emails by using however, with the latest version the line feeds are being stripped which didn't happen with WPTools 5. I am using:
S:=WPRichText1.AsANSIString('HTML-nomergefields,-usestdwidthheight');
How do I stop this happening?
Ken
Hi,
In a OnMailMergeGetText event I am setting the Contents.Hyperlink and Contents.HyperlinkName but this is not having any effect.
Do I have to do anything else?
Ken
Hi Julian,
Actually the text width is less than 200 characters.
I've found another way so don't worry.
Ken
Hi Julian,
I've been very quiet so far this year but here goes :)
I want to get the absolute text width of an RTF for other purposes.
I am using the following code:
WP:=TWPCustomRichText.CreateDynamic;
WP.Header.PageWidth:=280000;
WP.Header.LeftMargin:=0;
WP.Header.RightMargin:=0;
// WP.LayoutMode:=wpLayNormal;
WP.AsString:=S;
WP.ReformatAll;
WPWidth:=WP.Memo.TextWidth/WP.Memo.CurrentXPixelsPerInch;
WPHeight:=WP.Memo.TextHeight/WP.Memo.CurrentXPixelsPerInch;
WPLineCount:=WP.Memo.FirstPar.LineCount;
WP.Free;
My problem is that in some instances the LineCount is more than 1 even though there are no CR in the text. There are multiple fonts. I have set the PageWidth very large to try and avoid this.
Any help greatly appreciated.
Ken
Julian,
Thanks for all your help in 2010 and have a great Christmas and new year.
Ken
Julian,
Thanks very much. That fixed it.
Ken
Julian,
Yes, it is the same. Would you be kind enought to try the WordPad5 demo usibg V5 and Delphi 2010.
Ken
Even using the WordPad5 demo under Delphi 2010 it does not work. Are you suggesting that I upgrade to V6 just for this?
If I insert a symbol using your dialog from windings it displays as the arial equivalent. How can I make this display correctly?
Ken
Julian,
Thanks. Works perfectly!
Ken
Is it possible for this to work as in MS Word. e.g. currently dragging the left hand side moves it rather than resizes it?
Ken
Hi,
Is this supported in WPTools5?
Ken
Thanks, helps a lot.
Ken
I would like to implement a context sensitive popup menu similar to MS Word when any object is clicked on with the right mouse button in order to be able to change its properties be it a hyperlink, picture or any other object.
I should say that I'm surprised that this is not available by default!
Is there a list of all possibilities somewhere that I haven't seen?
Ken
Thanks, I'd already researched this and it's not totally what I require.
I need the user to be able to create the template from a specific number of fields. If the field is a graphic field I want them to see a sample graphic image and be able to reposition/resize it. Then at a later time I want to merge the real image but keep it's position/size as per the template with no user intervention.
Also if I modify the mailmerge example to use my own table, which has jpg images rather than bitmaps, I get an error when unchecking show fields.
Ken
Using your mail merge demo as an example, inserting the graphic field from the BioLife db displays as <<>>. Is it possible to insert an image here at this point so that the user could position/resize it but still have it mailmerge correctly when the mailmerge is run at a later stage.
Ken
Julian,
How can I detect when they need to be made visible or not.
Thanks,
Ken