Hello

i am facing problem with WritePrinter API Call, although the API function is working, i am getting good result while Printing. but the My Program (API Calls) not able to Print as per the Paper setting of the OS.

i have set the Paper size to Custome, in Printer Setings, if i print any matter through msword, notepad the data will be Printed as per the Page setting.

when i print data through my code it Prints for the A4 size Paper only , even though what ever Paper Size Settigns may be


Please any one help me how can i get rid of these Problem