Example Code

PDF Report with ItextSharp

Community Verified
by: Knight of NI JÞB

Code and Documents

Attachment

Exaprom PDF 2.0

 

LV2009 and  LV 2013 w/.net 4.0

 

After unzipping "Exaprom PDF2.0 (2009).ZIP" (or "Exaprom PDF2.0 (2013).ZIP"), you have a folder and a file:

1) the folder "Exaprom PDF";

2) and the file "exaprompdf.mnu".

Unzip ExapromPDF 2.jpg

 

The folder "Exaprom PDF" has to be place in:

C:\Program Files\National Instruments\LabVIEW Version\vi.lib\

Folder programming.jpg

The file "exaprompdf.mnu" have to be place in:

C:\Program Files\National Instruments\LabVIEW Version\menus\Categories\Programming\

Folder menu.jpg

 

After restart LabVIEW, the palette "Exaprom PDF 2.0" will appears.

Palette Exaprom.jpg

Note: Replace "Exaprom PDF\VIs\Low level\Table Low level\Create Paragraph for Cell.vi" in "Exaprom PDF2.0 (LV2013).zip" with the new "Create Paragraph for Cell.vi" (LV2013).

 

 

For Windows 7-64 bits with LV2013right-click the assembly and click Unblock on the General tab to grant an assembly full trust.

Unblock assembly.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
brad.riensche
Member
Member
on

It seems that this thread, and Jean-Marc's pdf writer project has been dormant for some time.  I had a recent need for a library like this, but found some compatibility problems between the library with newer versions of LabView.

 

So, here is my small contribution to further this project.  I basically moved the install directory to user.lib, eliminating the need to place the .mnu file in a separate directory.  Also, I recompiled the itextsharp 4.1.6 dll for anyCPU, allowing it to be used in both 32 bit and 64 bit projects.  Tested on Labview 2019, 32 bit and 64 bit.

 

You can find the updated source on github here:

https://github.com/husker52/labview-PDF-writer

hy12369
Member
Member
on

Why can't I generate headers and footers?

linu95k
Member
Member
on

Is this compatible with labview 2024?

Contributors