Printer options
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Printer options
Hi.
Silly things but useful.
Print setup (or in options) have the chance to add the filename also. Now you have the date by default
Also to select a printer font
Also to paginate the output.
I use a text editor for all the printing because of this.
Regards,
Silly things but useful.
Print setup (or in options) have the chance to add the filename also. Now you have the date by default
Also to select a printer font
Also to paginate the output.
I use a text editor for all the printing because of this.
Regards,
Re: Printer options
Well.
I encounter this thing again. Search and found this post.
Karlis. Any chance to do this?
Regards,
I encounter this thing again. Search and found this post.
Karlis. Any chance to do this?
Regards,
- pjafrombbay
- Posts: 15
- Joined: Fri Mar 11, 2005 6:27 am
- Location: Batemans Bay, NSW, Australia
Re: Printer options
I've just posted on this topic in the support section of this forum and had NO response (except from myself
). Clearly there are only three of us users who need this feature.
Regards,
Peter

Regards,
Peter
...men judge generally more by the eye than by the hand, because it belongs to everybody to see you, to few to come in touch with you. -- Niccolo Machiavelli, The Prince, ch. 18
- pjafrombbay
- Posts: 15
- Joined: Fri Mar 11, 2005 6:27 am
- Location: Batemans Bay, NSW, Australia
Re: Printer options
Nikolajs,Nikolajs Dutcuks wrote:We will try add this to our todo list.
Thank you!
Peter
...men judge generally more by the eye than by the hand, because it belongs to everybody to see you, to few to come in touch with you. -- Niccolo Machiavelli, The Prince, ch. 18
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: Printer options
+10. +100.
I guess this fell off the To Do list in 2011.
Just being able to set the font and size would be enough, but if the standard Windows dialog is used there are many options available.
I guess this fell off the To Do list in 2011.
Just being able to set the font and size would be enough, but if the standard Windows dialog is used there are many options available.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: Printer options
If you look at the TPrintDialog (Using Aivar's Plugin Script Tree Plugin, you'll notice that it's very limited, and doesn't have support for headers/footers etc.)
I think Blumenthals will have to implement an extended printdialog or something like this: http://yacs.lebeausoftware.org/TaeRichEditInfo.html
"The TaeRichEdit Component is a full-featured TRichEdit analogue. It supports Rich Edit 2.0 & 3.0 character and paragraph formatting; provides OLE support (including embedded graphics); expands printing options to include headers, footers, and border lines; and much more. The Borland C++ Builder (no Delphi) source is included. The component is free for non-commercial use."
The above page also contains a lot of useful info in the "Papers" section, about TRichEdit and how to print the content.
Another option, is to create a Plugin that uses ActiveX to transfer editor content to MS Word. Then the printer output is done by MS Word, which has support for Headers/Footers etc.
Simple example that prints current page using MS Word.:
The example uses the filename for the Header, and a custom text/page number for the Footer.
I think Blumenthals will have to implement an extended printdialog or something like this: http://yacs.lebeausoftware.org/TaeRichEditInfo.html
"The TaeRichEdit Component is a full-featured TRichEdit analogue. It supports Rich Edit 2.0 & 3.0 character and paragraph formatting; provides OLE support (including embedded graphics); expands printing options to include headers, footers, and border lines; and much more. The Borland C++ Builder (no Delphi) source is included. The component is free for non-commercial use."
The above page also contains a lot of useful info in the "Papers" section, about TRichEdit and how to print the content.
Another option, is to create a Plugin that uses ActiveX to transfer editor content to MS Word. Then the printer output is done by MS Word, which has support for Headers/Footers etc.
Simple example that prints current page using MS Word.:
Code: Select all
var fname = Document.FileName;
if (fname == "") fname = Document.FtpFileName;
var data = Editor.Text;
var objWord = CreateOleObject("Word.Application");
objWord.Visible = false;
objWord.Documents.Add();
var ActiveDocument = objWord.Documents(1);
// Add Header
var Header = ActiveDocument.Sections(1).Headers(1).Range;
Header.Text = fname;
Header.ParagraphFormat.Alignment = 0; // 0 = left, 1 = center, 2 = right
Header.Font.Name = "Arial";
Header.Font.Size = 12;
// Add Footer
var Footer = ActiveDocument.Sections(1).Footers(1).Range;
Footer.Text ="My Custom Footer";
Footer.ParagraphFormat.Alignment = 0; // 0 = left, 1 = center, 2 = right
Footer.Font.Name = "Arial";
Footer.Font.Size = 12;
// Add pagenumbers to footer
ActiveDocument.Sections(1).Footers(1).PageNumbers.Add(2, true); // 0 = left, 1 = center, 2 = right
// Insert text from editor
var rng = ActiveDocument.Range(0, 0);
rng.Text = data;
rng.Select();
// Activate print dialog
ActiveDocument.PrintOut();
objWord.Documents.Close(0);
objWord.Quit();
There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: Printer options
I guess I should be clear about what I think is necessary.pmk65 wrote:I think Blumentals will have to implement an extended printdialog
1. Expand header to include pathname of file being printed and page number. Retain date, which is important. This part is very easy - Rapid already knows how to put the date in the header.
2. Allow choice of font size.
The big problem is that the display font is used for printing. I'd like to see the font selection in Preferences | Text Editor enhanced so it can set a different size for the screen and printer. It's clear Rapid can handle a different size for printing because if you select a different display size the printed output changes as well.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: Printer options
I'll add +2 to the existing suggestions about font size and header customization. I guess it's difficult to make printing on printer exciting, which is why these tweaks don't get picked up.
Blumentals Software Programmer