LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147352567 The Margins are invalid

I'm using the Report Generation VIs of LabVIEW 6.1 in my application (built with Application Builder). They print out my report, if I install my application on a Desktop PC. But the same application installed on a Laptop generates the Error -2147352567 "The margins are invalid" and my report would'nt print out. This is very annoying. How can I solve this problem?
0 Kudos
Message 1 of 5
(3,433 Views)
Hi

Do you have tried printing from the Desktop and the laptop to the same printer to test it? Often this problem is caused by the printer driver. There are minimum margins for each printer. If the margins are set too small for the printer used, an error is returned. Try to find the newest printer driver.
Check this link too: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/088ab95d672c8a5486256a25004ba71c?OpenDocument

Luca P.
Application Engineer
National Instruments
Regards,
Luca
0 Kudos
Message 2 of 5
(3,433 Views)
The first thing to do is verify the values you are trying to set the margins to. If these values are bring calculated and the calculation involved floating-point numbers there is always the possibility that a calculation isn't working as expected with the result that the margin value being generated is not correct--no matter what printer the code is driving.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(3,433 Views)
I dug through our data base and found a link reported to fix this problem. You can find it by going to our advanced search page. Goto www.ni.com >> support >> advanced search (it is at the bottom--click on the words). This is the best way to search our site for tech support questions because it allows you to limit search to resources of interest. Enter 2147352567 report generation in the all the words field, search everything and press go. Look for "How Do I Fix the Report Generation Examples for LabVIEW 6.1 so They Don't Generate an Error?"

Jeremy Braden
National Instruments
0 Kudos
Message 4 of 5
(3,433 Views)
The margins that were set by default in labview are small for some printers, then you should:
1.Open the block diagram of the Text Report Example.
2.GO to the block diagram of the "Initialize Report.vi" situated at the left hand side of the diagram.
3. There will be a cluster constant where the margins are settled to 0.5 & 1.00, this cluster is conected to the margins(1.0) input of the "Set Report Margins.vi", play with them and it will work, save the vi to the margins you found more confortable to your aplication. I usually set it to 3.00 all of them to avoid any problem caused by this vi, an normally this will leave you alone in any pc.
Message 5 of 5
(3,433 Views)