how can i scale trichedit

General TRichView support forum. Please post your questions here
Post Reply
DiRi
Posts: 5
Joined: Thu Aug 31, 2006 9:04 pm
Location: Germany
Contact:

how can i scale trichedit

Post by DiRi »

using trichedit as print generator i have to scale the component's dimensions depending on the real print area of the selected printer. there is to consider the physical margins of the printer as well as printer orientation. to get an 1:1 canvas which will be printed as shown on screen.
Pleeeease - can anybody give me hints how to do that job ?
very many thanks in advance !
DiRi
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

sorry, it's not currently possible to scale editor.
you can only draw WYSIWYG preview using TRVReportHelper (or TRVPrintPreview in simple cases)
dave novo
Posts: 105
Joined: Wed Aug 31, 2005 2:13 am

Post by dave novo »

Hi Sergey,

You do not give yourself enough credit. We have scaled the editor quite well. We only handle the things we need (fonts, tables, custom label items) and not others (pictures, components) but its not that tricky.

If you do not need to scale the editor, and just the output, then you can just paint the trichview to a metafile and scale the metafile to the printer.

If you need to scale the editor, it is more complicated, but I can give some help if needed.
Post Reply