01-30-2015 04:11 PM
I've tried a few different 3rd party programs to print to PDF, but keep getting errors. The goal is to print the .vi Front Panel to a programmatically determined file. Screen shots fo the errors are attached.
I've tried Bullzip:
https://decibel.ni.com/content/docs/DOC-22555#comment-27786
Error 1172
And Exaprom:
https://decibel.ni.com/content/docs/DOC-10952
Error 1386
And PDF Creator:
https://decibel.ni.com/content/docs/DOC-4552
Error -2147221164
I've tried reinstalling the programs, the pdf creators, and the .NET framework, but I feel I'm missing something.
I'm using LV 2014 on Windows 8.1.
Thank you!
Solved! Go to Solution.
02-01-2015 05:59 PM
02-01-2015 06:40 PM
02-01-2015 08:11 PM
02-01-2015 08:17 PM
02-02-2015 11:02 AM
Hi COIEngineer,
I installed and opened the BullPrint Example and was able to duplicate the error you are recieving when I pointed it to a .vi file directly, but was able to get it to successfully print when pointed to an image file. Could you possibly print to a jpg, print that file to a pdf, and then delete the original(if you don't want the original file).
That error is generated when the pdf printer is unsure how to handle printing the file type specified.
02-02-2015 11:26 AM
With Exaprom, you need to unlock the DLL. Right click on the DLL and select Unblock.
For me, the option to unblock wasn't available. This from a stackoverflow post helped:
"I've often ran into this same problem when downloading files. Windows-7 will not always display the unblock button. Here are a couple easy workarounds:
First to verify the file is actually blocked, open a command prompt and type:
more < yourFile.exe:Zone.Identifer
If it reports your file has a ZoneId = 3 or 4, your file is indeed blocked. You have two easy options to unblock it:
First Method: If you have PowerShell version 3 or higher, you can open a PowerShell window and type:
C:\>Unblock-File -Path C:\Path\ToFile\yourFile.exe
To open a PowerShell window type powershell
into the run box. To check your PowerShell version, type this from the PowerShell prompt:
C:\> $PSVersionTable.PSVersion
Second Method: If you don't have that version of PowerShell installed, you could install it for free but there is a much faster download. Download the free streams program from sysinternals:http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx and from a command prompt type:
streams -d C:\Path\ToFile\yourFile.exe
."
02-02-2015 11:26 AM - edited 02-02-2015 11:27 AM
Double post from slow internet speeds today and me being impaitent...
02-02-2015 11:46 AM
@Tanner! wrote:
Hi COIEngineer,
I installed and opened the BullPrint Example and was able to duplicate the error you are recieving when I pointed it to a .vi file directly, but was able to get it to successfully print when pointed to an image file. Could you possibly print to a jpg, print that file to a pdf, and then delete the original(if you don't want the original file).
That error is generated when the pdf printer is unsure how to handle printing the file type specified.
Thank you!! This is a functional workaround. For reference, it also does not know what to do with .png files.
02-02-2015 11:55 AM
@BowenM wrote:
With Exaprom, you need to unlock the DLL. Right click on the DLL and select Unblock.
For me, the option to unblock wasn't available. This from a stackoverflow post helped:
"I've often ran into this same problem when downloading files. Windows-7 will not always display the unblock button. Here are a couple easy workarounds:
First to verify the file is actually blocked, open a command prompt and type:
more < yourFile.exe:Zone.Identifer
If it reports your file has a ZoneId = 3 or 4, your file is indeed blocked. You have two easy options to unblock it:
First Method: If you have PowerShell version 3 or higher, you can open a PowerShell window and type:
C:\>Unblock-File -Path C:\Path\ToFile\yourFile.exe
To open a PowerShell window type
powershell
into the run box. To check your PowerShell version, type this from the PowerShell prompt:C:\> $PSVersionTable.PSVersion
Second Method: If you don't have that version of PowerShell installed, you could install it for free but there is a much faster download. Download the free streams program from sysinternals:http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx and from a command prompt type:
streams -d C:\Path\ToFile\yourFile.exe
."
This solved the problem with Exaprom, and produces a nicer image than having to convert from jpg. I unblocked the .DLL, restarted Labview, and it worked. Thank you for your help!