Alpha Video Training
Results 1 to 23 of 23

Thread: "Printer error: print hdcPrn is Null" while printing, any ideas?

  1. #1
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default "Printer error: print hdcPrn is Null" while printing, any ideas?

    About 50% of the time I get this message when trying to print in Alpha Five (will print fine from other programs)

    "Printer error: print hdcPrn is Null" or sometimes no message and nothing prints.

    Stand alone laptop connected to a Dell laser printer with a USB cable, have tried two different printers and does the same with both.

    Happens just at random, can restart and it may print or it may not.

    Very annoying and embarrassing, but I'm sure it is something simple. Any ideas?

    Thanks
    Tony

  2. #2
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Printing a report, or something else?

    -- tom

  3. #3
    "Certified" Alphaholic Keith Hubert's Avatar
    Real Name
    Keith Hubert
    Join Date
    Jul 2000
    Location
    London, UK
    Posts
    6,930

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Tony, Are you specifying the printer in the design of the layout?
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

  4. #4
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,952

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Also look to see if the OneNote printer is installed - that can give you fits if you are printing an Alpha report to a PDF file.

    If so, search the board for removing OneNote - I arbitraily remove it on all client machines.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  5. #5
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Tom
    I only print reports with this app and that is when I get the error messages or nothing prints.

    Keith
    I have all my reports set up to print to the default printer

    Martin
    I do have OneNote installed, I don't know when that happened.
    However, problem occurs when printing reports, have not tried printing pdf of reports.
    I will search for removing OneNote and see what happenings

    Thanks for the replies, I be back with the results of removal of OneNote

    Tony

  6. #6
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,952

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I'm sure you have checked to be sure the default printer is the one you expect it to be.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  7. #7
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Just noticed that I have two Alpha Five printer drivers installed on my laptop

    AlphaFivePrinter V4

    and

    AlphaFivePrinter V4p5

    Are these the correct drivers I should have installed?

    Win 7 Pro, 64-bit
    Win 7 XP mode
    Alpha Five V11 build 2549

    Thanks
    Tony

  8. #8
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I have the same on my Win 7 Pro 64-bit box.

    I don't run vers 11 in XP mode. Are you doing that?

    -- tom

  9. #9
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Yes, running in XP mode.
    I had the printing problem with 10.5 as well
    Tony

  10. #10
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I wonder if you ran under Win 7, instead of in XP Mode, would that still have the problem you describe?

  11. #11
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Tom
    I'll have to learn how, but I'll look into that this afternoon and give that a try
    Thanks
    Tony

  12. #12
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    If I were you, I'd remove oneNote first.

  13. #13
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Tom
    I was wrong, I am running Win7 Pro on this machine.

    What is the correct Alpha Five printer driver I should have installed?

    AlphaFivePrinter V4

    or

    AlphaFivePrinter V4p5

    or both?

    Thanks
    Tony

  14. #14
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I have both here and am running without problem on a machine that's similar to yours.

    I do NOT have OneNote running or installed.

  15. #15
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,952

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    You probably want both - one is for 10.0 and earlier, and one is for 10.5 and later (as I recall)

    they will NOT conflict iwth each other - HOWEVER - you NEVER print to them, they are for converting to PDF, etc.

    Also, there is no reason to run either 10.5 or 11 in xpmode, that I am aware of - All my clients are running "not in xp mode" with no known issues.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  16. #16
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Thanks Martin
    I will keep both.
    I have deleted OneNote and so far so good.
    Thanks
    Tony

  17. #17
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I still have a problem with printing. Getting same error:
    "Printer error: print hdcPrn is Null" or sometimes no message and nothing prints.

    I have deleted OneNote

    I have six actual printers installed that are current and active

    Then I have:
    Alpha Five Printer V4p5
    Fax
    Microsoft XPS Document Writer
    Peachtree E-Mail Writer V3
    Quicken PDF Printer

    Win 7 Pro, 64-bit

    Alpha Five V11 build 2549

    Any ideas?

    Thanks
    Tony

  18. #18
    Member
    Real Name
    Tony Watts
    Join Date
    Mar 2010
    Posts
    439

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I opened Alpha Sports and tried to print an invoice and received this error message:

    Script:OnPush line:19
    :Report.Print("Invoice".query.filter,query.order)
    Printer error:printer_init - print_dialog returned NULL hdc

    I have received this error a time or two in my app as well

    Thought this info might help

    Thanks

  19. #19
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Edited -

    Tony, sorry about the previous post. On re-reading this entire thread I see that my ideas had already been tried. Since you don't have trouble printing with other apps the problem is not likely to lie with your hardware.

    -- tom
    Last edited by Tom Cone Jr; 05-26-2012 at 04:00 AM.

  20. #20
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,952

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Remove the Alpha printer using the Windows controlpanel
    go inside the alpha executable folder, and find the exe for reinstalling - most likely in x86 program files\a5v11\amyuniv4\installlamyuniprinters

    then go back to the windows control panel, devices and printers, and right click on the Alpha V4p5, and right click and view printer properties and be sure it is set to the null port.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  21. #21
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,310

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Martin,

    I've just checked the properties of my AlphaFivePrinter V4p5 on my Win 7 machine. You're correct. The checkbox on the ports tab is set to the NULL port. I don't recall doing this manually. Hopefully this will solve Tony's issue. Interestingly, on my XP machines the port is set to LPT1.

  22. #22
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,952

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    Tom, I first ran into the issue when users had installed OneNote - which hijacks the Null port. I think there is more than one way to resolve the issue, but this is my current fix. It may be an issue for a LOT of users, but because they have never printed to a PDF they don't they have it. I ran into it early, in XP, as I have 2 clients that print all (literally) their reports to PDF's.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  23. #23
    Member
    Real Name
    L Eklund
    Join Date
    Feb 2009
    Posts
    23

    Default Re: "Printer error: print hdcPrn is Null" while printing, any ideas?

    I had this error come up and the wording is misleading. What the problem really was that there were 2 printers defined in different report settings.
    If you specify a specific printer, it must be the same under these settings:
    File - Print Setup
    Report - Properties - Band - Report Properties - Specify Printer

Similar Threads

  1. Error layout table report: printer error: preview - hdcPrn is NULL
    By cptutrecht in forum Application Server Version 11 - Web/Browser Applications
    Replies: 5
    Last Post: 05-20-2012, 08:50 PM
  2. error - "a5.js" and "'this._keys.length' is null or not an object"
    By eritovs in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 10-13-2011, 10:12 PM
  3. "No Printer Configured" Error
    By AL@ALCO-SALES.COM in forum Alpha Five Version 7
    Replies: 4
    Last Post: 04-21-2008, 12:52 PM
  4. "Printer not activated, error -30" no luck
    By hooshyforchy in forum Alpha Five Version 7
    Replies: 6
    Last Post: 01-19-2006, 10:00 PM
  5. Error Msg "No Printer Configured"
    By Charlesv in forum Alpha Five Version 5
    Replies: 7
    Last Post: 10-31-2004, 05:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •