Setting Device-ppi manualy?

General TRichView support forum. Please post your questions here
Post Reply
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

Setting Device-ppi manualy?

Post 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
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

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