Page 1 of 1
how can i scale trichedit
Posted: Fri Sep 22, 2006 7:06 am
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
Posted: Fri Sep 22, 2006 12:47 pm
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)
Posted: Sat Sep 23, 2006 2:19 am
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.