paper size changes internally in rendering plug in

Hello,

I have written a rendering plug-in using DDK. When I select the paper size for my driver through “Page Setup” of notepad and if I see same settings in “Print” property sheet it reverts back to default papersize “letter” . Even if i change it now it does not print properly.

Can somebody tell me where is the problem? I am doughtful about the GDIINFO structure initialization and any GPD file entry related to this ?

thanks

-Hrishi