Click to See Complete Forum and Search --> : problem scaling text


ramkannan
April 7th, 2005, 02:46 AM
im trying to dispay a text on a white rectangle (representing page)on a dialog and print it so that the printout looks just similar to the preview.I first created a font of size 16 and a dc compatible to pinter dc and wrote the text at x,y on it.I used graphics.setpagescale(Ratio) where ratio is( (printerdc.getdevicecaps(getphysicalwidth)/(width of paper as seen in preview dialog))the print out lloks fine.

but the preview comes with the white paper and a few dots(very compressed text) when i apply the inverse scaling ratio.

how to solve this and achieve the effect as in MS Word??
please help....