Conversation

Error: "Printer selected is not valid."

(overview of excerpts from articles in conversation)

Newsgroup: borland.public.delphi.nativeapi.win32

# Lines
wrote on 27-Aug-2004:

Hello,
I have a Delphi 7 project that prints to a plastic card printer using the
Printers.pas unit and calling "BeginDoc". I have updated to the latest
driver for the newer model printer and I've also tried using Windows 2000
and Windows XP to see if Windows was part of the issue but it isn't. When
42
  
Peter Below (TeamB) replied on 28-Aug-2004:

In article <412fa09f$✉newsgroups.borland.com>, Edward wrote:
  (snip)

As a test copy the Printers.pas unit to your project directory and change the
  code a little:
  (snip)

Replace that line with
  DC := CreateHandleFunc(PChar(Driver), PChar(Device), nil, DevMode);
47
    
Edward replied on 30-Aug-2004:

I changed the code as suggested and now I get the error: 'System Error.
    Code: 1801. The printer name is invalid'. I have been searching the web for
    clues on this one but haven't found anything yet. If anyone has an idea
    please let me know.
    Regards,
42
      
Iman L Crawford replied on 30-Aug-2004:

"Edward" wrote in news:41332d8f$1
      @newsgroups.borland.com:
      (snip)
Are you running on 2000/XP for the first time? Write a small app,
      placing a TMemo on the form. Include the Printer unit. Then in the
      formcreate event place the following code:
19
        
Edward replied on 30-Aug-2004:

That fixed it. Thanks Iman and Peter.
        "Iman L Crawford" wrote in message
        news:Xns955558C527B10ilcrwfrd@207.105.83.66...
        (snip)


        
18
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Sat, 23 Nov 2024 00:30:36 UTC
Copyright © 2009-2024
HREF Tools Corp.