Printer options

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
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".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Printer options

Post by notuo »

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,
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Re: Printer options

Post by notuo »

Well.

I encounter this thing again. Search and found this post.

Karlis. Any chance to do this?

Regards,
User avatar
pjafrombbay
Posts: 15
Joined: Fri Mar 11, 2005 6:27 am
Location: Batemans Bay, NSW, Australia

Re: Printer options

Post by pjafrombbay »

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
...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
User avatar
Nikolajs
Blumentals Software Developer
Posts: 108
Joined: Mon Sep 19, 2011 8:28 am

Re: Printer options

Post by Nikolajs »

We will try add this to our todo list.
Nikolay Dutchuk
Blumentals Software
User avatar
pjafrombbay
Posts: 15
Joined: Fri Mar 11, 2005 6:27 am
Location: Batemans Bay, NSW, Australia

Re: Printer options

Post by pjafrombbay »

Nikolajs Dutcuks wrote:We will try add this to our todo list.
Nikolajs,

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
User avatar
Will Fastie
Posts: 160
Joined: Mon Jan 31, 2005 6:47 pm
Location: Timonium, MD USA
Contact:

Re: Printer options

Post by Will Fastie »

+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.
Will
WebDesignBuild.biz, Fastie.com
User avatar
pmk65
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Printer options

Post by pmk65 »

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.:

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();
The example uses the filename for the Header, and a custom text/page number for the Footer.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
Will Fastie
Posts: 160
Joined: Mon Jan 31, 2005 6:47 pm
Location: Timonium, MD USA
Contact:

Re: Printer options

Post by Will Fastie »

pmk65 wrote:I think Blumentals will have to implement an extended printdialog
I guess I should be clear about what I think is necessary.

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
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Printer options

Post by Aivars »

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
Post Reply