LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't print to Epson TM-U590 Slip Printer from Report Generation Toolkit with LabVIEW 8.6.1

Solved!
Go to solution

Hi all,

 

I have an application that uses the Report Generation Toolkit to print tickets to a docket printer.  Usually this works fine - I have 8 existing installations where there are no problems

 

I'm currently installing the software at a new site that uses an Epson TM-U590 slip printer and I can't for the life of me get printing to work

 

Using a Standard Report, the Print Report.vi returns error -41002 which indicates it can't find the printer.  I've opened up the VI using remote debugging and it does find the printer name correctly with the Query Available Printers.vi.  It gets an error code -2147352567 from the Printout node, which then gets replaced with the -41002 error which is reported.

 

For historical reasons I'm still using LabVIEW 8.6.1 for this project.  I'm considering moving to 2011 or 2012 but I've had reliability issues with other parts of the application after attempting to update to a newer LabVIEW version so I'd like to avoid that at this stage.

 

The application is running on a standard desktop PC with Windows 7.  The slip printer works fine if I print to it from Notepad, and my application is happy to print to any other printer, just not the slip printer.

 

The slip printer is using the LPT port.  Previously the docket printers I've used have been USB but I would expect the printer driver to hide this detail from the application...

 

Any ideas would be much appreciated

 

Cheers

Brett

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com


0 Kudos
Message 1 of 4
(3,761 Views)

What version of Windows are you using on the PC's that do work?

 

According to Windows Version Compatibility with LabVIEW  LabVIEW 8.6 is not compatible with Win7.

0 Kudos
Message 2 of 4
(3,750 Views)

All but the first installation of the software are running on Windows 7.  They are a mix of Atom-based industrial PCs and standard deskop boxes.

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com


0 Kudos
Message 3 of 4
(3,746 Views)
Solution
Accepted by topic author Brett_Percy

I've managed to sort out the problem, thanks to this KB article: http://digital.ni.com/public.nsf/allkb/67D60209102E2161862568AC0074BF64

 

I'm now having the same issue with a Star docket printer (a TUP592), this time with another program developed in LabVIEW 2011.

 

As mentioned in the article, the problem is actually to do with the margin settings rather than the printer name, despite what the error message says 😞

 

After some experimentation, I've gotten the Star printer to work by setting a large (>14cm) right margin.  No idea why this is required as it seems to print right up to the right edge of the paper quite happily, but there you go.

 

So I haven't defintely fixed the original problem yet as I haven't gotten back to the site, but hopefully this will be of some help to someone else.

 

Cheers

Brett

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com


0 Kudos
Message 4 of 4
(3,701 Views)