I'm using ImgX (registered) in a VB6 application to print tiff images. Printing works as expected for "letter" and "tabloid" sizes. When printing large format images (read: architectural drawings "c-size", "d-size", etc...) I'm attempting to set a custom paper size, however the print result is always on a standard letter size sheet. The printed output is cropped around the center of the image at whatever amount will fit on the sheet. In other words, the image isn't being scaled down to fit the paper (this is good) it's just that the paper size is incorrect (not good). Here's a code snippet...
imxPrint.PaperSelection = ixppCustom
imxPrint.PaperWidth = imxMain.Images(0).DotsPerInchX * sC(0)
imxPrint.PaperHeight = imxMain.Images(0).DotsPerInchY * sC(1)
In the example code sC(0) and sC(1) hold integer values of the x and y paper size in inches. I have also attempted to set the paper width and height as inches which results in a blank sheet being printed.
imxPrint.PaperSelection = ixppCustom
imxPrint.PaperWidth = sC(0)
imxPrint.PaperHeight = sC(1)
Any help with this issue is appreciated.