Page 1 of 1

Setting Device-ppi manualy?

Posted: Wed Dec 05, 2007 12:33 pm
by sh17
Hello,

is it possible to set

ppixDevice and ppiyDevice in RV_InfoAboutSaD manually before formating?

Because i have some problems with tabs. I create my own PrintPreview with the specific resolution of the printer, but it is not the printer-canvas, where i painting. So - tabs are not correcly drawed on ppi <> 96.

if i set this properties manually, it works fine

Thanks, Sven

Posted: Fri Dec 07, 2007 11:47 am
by sh17
ok, if i change this value to the printer-resolution - images don't be drawed correct.

Is it possible, to include a specific variable for tab-drawing like "tab-dpi".

If you do not want this - how can i hack your code for my own use?

Posted: Mon Dec 10, 2007 1:59 pm
by Sergey Tkachenko
In TRichView, you cannot change resolution.
Well, you can assign RVStyle.TextStyles.PixelsPerInch, but it affects only text (like changing font size in browsers).

You can use RVReportHelper to draw at printer resolution.
See http://www.trichview.com/support/files/a4.zip

Posted: Mon Dec 10, 2007 2:18 pm
by sh17
Thanks, i allready use RVReportHelper, but i have found my error:

TMetafileCanvas.Create(AMetafile, RV_GetPrinterDC);

I must create my metafile with the specific DeviceContext

Sven