LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

reportgen : NIReport_Print( ) hangs

Hi,

using reportgen.fp, I've noticed that the print function didn't work with "shared printer" like "\\SrvProd\\HP Business 2230/2280". The NIReport_Print() function returns -4. It works fine with other printers.

Any suggestions ?
0 Kudos
Message 1 of 3
(2,741 Views)
Hello

Try running one of the nireports examples. I tried a shared printer and it seemed to work ok.

NIReport_Print (reportHandle, "\\\\tempest\\ae04", 1);

You might want to check if your slashes are correct. You should try using "\\\\SrvProd\\HP Business 2230/2280" instead. I got the same error number when I had the incorrect number of slashes

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,741 Views)
Hello,

it was a good idea...I think it was the solution but it didn't work !. with the debug,I've changed the name of the printer, but unsuccessfully.
So, I continue to search.
Thank's
0 Kudos
Message 3 of 3
(2,741 Views)