How do I print a multipage doc to PDF from LabVIEW?

I have an app which prints reports for my client.
The reports are mostly graphs, with some attached labeling info.
These might be one or a hundred pages, all results of a modeling run.
I have several dummy VIs, which are laid out the way the page should look (different from the screen), and it can print to the printer, a PNG file, a BMP file, or a JPG file.
Right now, each page is a separate PRINT VI operation. In other words, the same VI may be called multiple times, with different data, and told to print.
This has worked well for several years. But now, the client would like to print directly to PDF, with each PDF file containing one to a hundred pages.
I've tried things like "Win2PDF", but that makes a separate file for each page. That's understandable, since I'm calling the PRINT VI multiple times, but it's not what I want.
I have never used the REPORT GENERATION VIs in LabVIEW, but my first look at them was not promising. One example complained that I cannot move or rename the "Documents and Settings" folder (I didn't really want to, but it apparently tried). Another generated an OK HTML file and printed it, but HTML introduces all kinds of uncertainties about page boundaries and such.
Anyone have suggestions about a better answer?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Hi Coastalmainebird,
I've done somehting like this myself, also without the report toolkit. I've found controlling Word/Excel myself gives more control, and is easier to understand (If you are familiar with macro programming in Office).
You can place the objects into a WORD file, setting their position to fixed and so on (I'd have to check for the exact details, but you probably know this part already). I DO remember that "inlineshapes" and "shapes" are handled seperately by word. Make sure to only use one of the two types (Inlineshapes move with text I think, whereas Shapes float). A simple way would be to take a snapshot of the front panel required and pop the picture into the word file (preferably one screen per page).
Once all pics are in the file, print using the required PDF generator. I've used JawsPDF in the past and it worked almost good. It had the odd problem of missing a print from time to time, but otherwise gave good results.
I have always placed some kind of notifier in the word file to let WORD know to print a PDF. Then, using a macro which is tied into the event structure of WORD (A tricky thing to get running by the way), I check at run-time when printing if it's a designated "PDF" print. I can then route to the correct "printer" to get the job done properly. The event structure of WORD is quite useful as you can (As in LV) capture most user actions and act accordingly.
If you have some time, I might be able to dig up an example. Could take a few days though since I'm in a new company since I've done this particular piece.
Hope this helps.
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Similar Messages

  • How do I print a list of my events from one of my calendars for tax purposes?

    How do I print a list of my events from one of my calendars for tax purposes?

    I actually began this process by creating a new calendar called "Medical" and then each event was assogned to this calendar but the program still wants to print out every day of the month for even those days that have no events.  The list view gives me the look I want and I have even tried deselecting all of the options and then reselecting them one at a time to no avail.

  • How do i print all posts in a forum from url?

    how do i print all posts in a forum from url?

    Firefox doesn't have a built-in feature to open all the links on a page, or to print pages automatically. However, there might be some add-ons that would help you do that. You could search on the web, or try on the Add-ons site:
    https://addons.mozilla.org/firefox/
    Alternately, you may find a separate program to do it, which either has its own embedded browser or uses the connectivity features built into Windows.

  • How do you print ingredients for a grocery list from Recipe Box

    How do you print ingredients for a grocery list from Recipe Box?
    I would think that this basic functionality would be there to semi-automate the process.
    Thanks!

    Hi Mark,
    You'd have to do something like this;
    - Create a Rule in XPRESS that iterated over each of the Roles assigned to the user and invoke the java method available on the com.waveset.object.Role object
    java.util.List      getSubRoleList()
              Return the current list of roles assigned to this role
    <dolist name='currentRole'>
              <ref>user.waveset.roles</ref>
              <set name='roleObj'>
                <invoke name='getObject'>
                  <ref>theSession</ref>
                  <invoke name='findType' class='com.waveset.object.Type'>
                    <s>Role</s>
                  </invoke>
                  <ref>currentRole</ref>
                </invoke>
              </set>
    <block trace='true'>
              <set name='subRoles'>
                <invoke name='getSubRoleList'>
                  <ref>roleObj</ref>
                </invoke>
              </set>
             <ref>subRoles</ref>
    </block>
       </dolist>HTH,
    Paul

  • HT204003 how can i print a boarding pass image file from passbook?

    how can i print a boarding pass image file from passbook?

    I do not believe that Passbook supports printing. You can email, but not print. Then again I'm not sure what it actually emails, if that is a graphic of the card or what. I'm going to try it with my Starbuck's card, but there is no setting for printing within Passbook.
    EDIT: Actually it sends the email as an attachment for a Passbook card file, that cannot be handled by my computer. Hope that answers your question.
    Message was edited by: ChrisJ4203

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • How to convert XML into word doc or pdf

    hi all ,
    i ve to create a xml with specified alignment,but while taking print out alignments changing according to IE's alignment.
    So, Plz some one tel me whether any solution is there in xml itself or it have to be convert into word doc or PDF.If so, tell me an idea for how to convert xml file into Word doc or PDF.

    thanx ,i saw about FOP in xml.apache.org site and i learned something abt tat . But i dont know how to download FOP package from apache..
    Actually they gave links to download
    like http://ftp.wayne.edu/apache/xml/fop
    inside tat link they mentioned as parent,Directory,binaries,sources and tar files.From this i dont know how to download?
    Plz can someone tell a solution..

  • How do I  print out the attributes of objects from a  Vector?  Help !

    Dear Java People,
    I have created a video store with a video class.I created a vector to hold the videos and put 3 objects in the vector.
    How do I print out the attributes of each object in the vector ?
    Below is the driver and Video class
    Thank you in advance
    Norman
    import java.util.*;
    public class TryVideo
    public static void main(String[] args)
    Vector videoVector = new Vector();
    Video storeVideo1 = new Video(1,"Soap Opera", 20);
    Video storeVideo2 = new Video(2,"Action Packed Movie",25);
    Video storeVideo3 = new Video(3,"Good Drama", 10);
    videoVector.add(storeVideo1);
    videoVector.add(storeVideo2);
    videoVector.add(storeVideo3);
    Iterator i = videoVector.interator();
    while(i.hasNext())
    System.out.println(getVideoName() + getVideoID() + getVideoQuantity());
    import java.util.*;
    public class Video
    public final static int RENT_PRICE = 3;
    public final static int PURCHASE_PRICE = 20;
    private int videoID;
    private String videoName;
    private int videoQuantity;
    public Video(int videoID, String videoName, int videoQuantity)
    this.videoID = videoID;
    this.videoName = videoName;
    this.videoQuantity = videoQuantity;
    public int getVideoID()
    return videoID;
    public String getVideoName()
    return videoName;
    public int getVideoQuantity()
    return videoQuantity;
    }

    Dear Bri81,
    Thank you for your reply.
    I tried the coding as you suggested
    while(i.hasNext())
    System.out.println( i.next() );
    but the error message reads:
    "CD.java": Error #: 354 : incompatible types; found: void, required: java.lang.String at line 35
    Your help is appreciated
    Norman
    import java.util.*;
    public class TryCD
       public static void main(String[] args)
         Vector cdVector = new Vector();
         CD cd_1 = new CD("Heavy Rapper", "Joe", true);
         CD cd_2 = new CD("Country Music", "Sam", true);
         CD cd_3 = new CD("Punk Music", "Mary", true);
         cdVector.add(cd_1);
         cdVector.add(cd_2);
         cdVector.add(cd_3);
         Iterator i = cdVector.iterator();
         while(i.hasNext())
           System.out.println( i.next() );
    public class CD
       private String item;
       private boolean borrowed = false;
       private String borrower = "";
       private int totalNumberOfItems;
       private int totalNumberOfItemsBorrowed;
       public CD(String item,String borrower, boolean borrowed)
         this.item = item;
         this.borrower = borrower;
         this.borrowed = borrowed;
       public String getItem()
         return item;
       public String getBorrower()
         return borrower;
       public boolean getBorrowed()
         return borrowed;
       public String toString()
          return System.out.println( getItem() + getBorrower());

  • How do I make a word doc to PDF

    How do I make a work doc. to PDF

    Hi rose51,
    In Adobe Reader you see the services,however you need to subscribe in order to use them.
    Refer this link to download:Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack
    Regards,
    Florence

  • How do I convert a WORD doc to pdf on my Mac

    How do I convert a WORD doc to pdf

    Easiest way if you have Word installed: from Word's File menu, do "Save as..." and you will find a pdf option in the "Format" pull-down:
    The example is from Office:Mac 2008; should be similar in Office 2011.

  • How do I print or export as a PDF a site map created in Muse?

    I created a site map created in Adobe Muse CC 2014. Now I want to print it or save it as a PDF so I can present the proposed website to my client. How can I print from Muse? If Muse does not have print capacity, can you suggest what Adobe application I can recreate the proposed website site map in and then print it?
    Thank you for your prompt response. This project has a very tight deadline.

    Please refer here :
    https://forums.adobe.com/thread/1375447?tstart=0
    Thanks,
    Sanjit

  • How can I insert a Pages, Doc, or PDF file into a Keynote presentation?

    I need to insert a document (.pages, .doc, or .pdf anyone) into a Keynote for a portfolio that I must present.  How can I do this?  It doesn't give me that option under hyperlink in inspector. 

    the best is to insert screenshot directly in keynote. If it's for a paper version save everything as pdf and compile with "combine pdf".

  • How do i save as a .doc or .pdf

    In pages how do I save my documents as a .doc or .pdf so non-pages users can view them?

    Use File > Export or Share > Export.

  • How can i convert a jpeg doc to pdf on macbook

    how can i convert a jpeg doc into a pdf doc?

    Open it in Preview and choose Export from the File menu.
    (112944)

  • How do you print to a HP Officejet 8500 from an iPad?

    How do you print to a HP Officejet 8500 Pro from an iPad?

    Is it an 8500 or 8500a?  Only the 8500a supports direct printing from an iPad (with no 3rd party printing software).
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

Maybe you are looking for

  • New Apple ipad air display not working,please help?

    Please can anyone offer help? Week old ipad air display has stopped working after app froze and son double tapped home button to shut app down.Thank you in advance for any offers.

  • Can not Cancel Processing of Message in SXMB_MONI

    Hi all I'd like to clean up some outstanding error messages in SXMB_MONI but when I try to 'Cancel processing with errors' I get a message stating 'Can not cancel XML message with this status/type' The status is 'System Error - Restart not possible'

  • Trying to find synced contacts

    I am trying to move my contacts to my new Z30.  I've tried device switch and having both phones (previous is iphone 4) plugged into the computer.  The transfer works and I'm told 150ish contacts have been saved but they don't show up in my contacts l

  • Error Msg when trying to open PDF

    When i try to open the pdf I keep getting an error msg that states "Warning: This form is not supported with the current version of Acrobat or Adobe Reader. Upgrade to the latest version for full support" but I only just downloaded this app today.  I

  • New image at the beginning of timeline

    Why when I put a new image (or symbol) in the stage, always appears at the beginning of the timeline? And how can I move it?