Board index » delphi » BeginDoc..EndDoc

BeginDoc..EndDoc

In Windows95, I setup the default page size of my EPSON LQ1055
to be as large as an envelop. If I use notepad.exe or write.exe
to print a file, It's OK. However, In my Delphi program,
Printer.BeginDoc..Printer.EndDoc still gives me a letter size page.
What's wrong with this ?
---
Best Regards,

Kuo-Chien Kai
----------------------------------------------------------------
Computer & Communication Center | E-mail: kc...@cc.nthu.edu.tw
National Tsing Hua University   |  Phone: +886-35-715131-5160
Hsinchu, Taiwan 30043           |    Fax: +886-35-710776

 

Re:BeginDoc..EndDoc


Quote
I (kc...@cc.nthu.edu.tw) wrote:
> In Windows95, I setup the default page size of my EPSON LQ1055
> to be as large as an envelop. If I use notepad.exe or write.exe
> to print a file, It's OK. However, In my Delphi program,
> Printer.BeginDoc..Printer.EndDoc still gives me a letter size page.
> What's wrong with this ?

I found some strange things. My Windows95 is configured with 2 EPSON
printers. Within my Delphi program, no matter which printer I am using,
the pagesize always comes from the settings of the default printer.
For example, In Windows control panel I set my first printer to use
envelop size, and set my second printer to use letter size. However,
  Printer.PrinterIndex:=0; Printer.BeginDoc; Printer.EndDoc;
  Printer.PrinterIndex:=1; Printer.BeginDoc; Printer.EndDoc;
both give me envelop page size.  

Hope some one can help me to solve this problem.
---
Best Regards,

Kuo-Chien Kai
----------------------------------------------------------------
Computer & Communication Center | E-mail: kc...@cc.nthu.edu.tw
National Tsing Hua University   |  Phone: +886-35-715131-5160
Hsinchu, Taiwan 30043           |    Fax: +886-35-710776

Other Threads