Well,
Frankly, I had used both the ScaleX and ScaleY methods before I posted the above question. These two methods also exist 4 the Printer object & that is what is of more interest 4 me. But, unfortunately, when I call the ScaleX or ScaleY method on the Printer object, it raises, almost always, runtime error 11 with no error description.
U should have guessed by now what I want to accomplish. Actually, the SetUserPaperSize method of the CRAXDRT.Report (Crystal Reports 9 ActiveX Runtime)object expects the height and width of a page in pixels (quite oddly!) in order to define a custom size 4 the paper at runtime. I've used the ScaleX aand ScaleY methods to get my desired value in inches but it always returns the page width and height shorter than what I expect. I am always able to set the page dimensions dynamically by using hit and try method and finding an appropriate value 4 the length and height of the page.
ejan
|