How can I print some pages from multipage report

Hello,
I have created a multipage report in word. I would like the user to be able to print the pages selected (as in word printing: pages: 1, 2-3); 
I am using Office 2007 pro, the LabVIEW Report Gen Toolkit, LabVIEW 2009, and Windows XP.
I used the suggestion in thread:
http://forums.ni.com/t5/LabVIEW/How-can-you-print-a-single-page-of-a-multipage-report/m-p/155233 , modifying the print VI that comes shipped with LabVIEW: NI_ReportGenerationToolkit.lvlib:Word_Print.VI.
first of all I put two integer constants on "From" and "To" in the Invoke node (PrintOut), but Labview return an error:
Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi -> print2.vi
Then I searched for PrintOut Method in word 2007 Reference guide, and I saw that for using From and To the Range field must have the string  wdPrintFromTo;
I insert wdPrintFromTo string  in RANGE Field and tryed.... same error......
After that I change approach; removed all constants and used the field Pages; I put a string "1-2" connected to this field and now the printer respond, but all pages was printed!
What's wrong?
many thanks
Attachments:
print2.vi ‏18 KB
parte comune.doc ‏43 KB

Thanks, Alex!
ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
I don't try second approach, because at this time I have only one report
I try also with VB macro: this is better (print3.vi) but.....if I use:
Sub Print_Pages_From_To()
ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
End Sub
is ok; print the pages selected; if I use:
Sub PrintPages()
ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
End Sub
printer print all pages.
what do you think?
regards,
Italo
Attachments:
print Problem.jpg ‏39 KB
print4.vi ‏19 KB
print3.vi ‏19 KB

Similar Messages

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

  • How can i print some documents from my ipod?

    I'm waiting for the answer

    Hi,
    Firstly you need a printer which supports this function. Do you have one ? If Yes, please use the following instructiions:
       http://itunes.apple.com/au/app/hp-eprint/id299531647?mt=8
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I print half pages to fit in my circa desk calendar

    How can I print half pages from iCal to fit in my Circa desk calendar?

    That depends on the program, but if it's Preview, go to Page Setup... under the File menu. Select the appropriate paper size there. Then go to File > Print... and do a Preview. If the content does not fit on the page, some printer drivers will have a Scale to Fit setting. If there is none, go back to Page Setup... and manually adjust the Scale until it fits nicely when you do a Preview.

  • How do I delete some pages from an existing pdf file?

    I have an existing pdf file that is too large to send to some people. How can I delete some pages from this existing pdf file, and break it up into two files?

    Acrobat
    You can download a 30 day trial at that link.
    You may also be able to do it with CreatePDF, but I'm not sure.

  • Can I print web pages from firefox using adobe pro 9 (Not using PDF download) and if so how

    Can I print web pages from Firefox 3.6.12 using adobe pro 9 (not using PDF Download) and if so how.

    {Ctrl + P} - do you have a PDF Printer listed in the Printer - Name drop-down?

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How can I print an envelope from a Pages document ?

    How can I print an envelope from a Pages document?

    Not from a document, but there are envelope templates in Pages you can use.

  • How can i print only pages which have been highlighted, from a multi page file?

    How can i print only pages which have been highlighted, in a multi page file.

    Ah, I see want you mean. This might not be practical for you, but if you select one instance of the highlighted text and add a [space] to the little sticky note, all of the highlighted text on that page will appear in the summary.

  • How can I print address labels from numbers spread sheet

    How can I print address labels from numbers spread sheet

    CAB,
    The 5163 template has the following dimensional specs:
    Dimensions & Info
    Length: 4.00000"          Height: 2.00000"
    Top Margin: 0.50000"          Bottom Margin: 0.50000"
    Left Margin: 0.18000"          Right Margin: 0.18000"
    Hor. Spacing (gutter): 0.14000"          Vert. Spacing (gutter): 0.00000"
    Intended Use: Mailing Labels, Shipping Labels, Address Labels
    There's a great vendor site with this data readily available, better than the Avery site in my opinion. But, you can get the same info in the Contacts Print dialog pane.
    You can grab a template matching these dimensions from that vendor site, Copy the table after opening the Word Template in Pages and drop the into a blank Numbers Sheet.
    I found that Sheet side margins of 0.15" worked better than 0.18. For some reason the table wanted to flow to the next page to the right with 0.18". Turning off the Headers and Footers and setting Top and Bottom Margins to 0.5" worked well. These adjustments are made in the Sheets Inspector.
    So, that will put the template you specified into a Numbers document and you can print labels properly aligned from there. Since your problem statement is a bit lacking in detail, that's all I can offer you at this point.
    Jerry

  • How do I print 2 pages from a pdf file and enlarge it

    how do i print 2 pages from a file and enlarge it  to email

    Hi stevebulldog,
    Do I understand correctly that you'd like to extract two pages from a PDF, and then send them via email?
    To extract pages from a PDF, you need to use Acrobat. If you don't have Acrobat, you can try it for free for 30 days. Please see http://www.adobe.com/products/acrobat.html.
    I'm not sure what you mean by "enlarge" it. When your recipient views the PDF, they can enlarge the view (zoom in on the PDF) by choosing options from the View menu in Acrobat or Reader.
    Best,
    Sara

  • How can i print an email from icloud using W 7

    How can I print an email from ICloud, from my PC, using Windows7?
    I just cannot find and icon for it. When I right click on mouse, I get print option, but it does print a blank page.
    Help please.
    Thanks,
    Rene

    Hi there Lindlylou!
    I have an article here that can explain a little more about the feature you are referencing, called AirPrint:
    AirPrint Basics
    http://support.apple.com/kb/HT4356
    That article will contain information about which printers are AirPrint compatible, as well as information about how to use AirPrint on your iPad. Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • How can I print a doc from my iPhone 4S to a Lexmark Interpret S405 printer with WiFi? Thanks!

    How can I print a doc from my iPhone 4S to a Lexmark Interpret S405 printer with WiFi? Thanks!

    Unfortunately you need an airprint enabled printer to print from an iOS device. There are some work arounds but they are very complicated and aren't proven to work 100%. From what I understand through rumors they are working on allowing all wireless printers to work with iOS but at the moment that's a pipedream. I don't know how important it is but if you really need to print from iPhone you can find some great AirPrint printers on Ebay for decent prices. Good Luck!

  • How can i print the calender from the ipad?

    How can i print my calender from the ipad with a windows laptop?

    you can try to take a snap shot of the screen. to do this open your calendar, hold down the home key and quickly press & release the power button, release the home button the same as the power button..... if you do it right the screen will flash and you will hear a camera shutter sound. the snap shot will then show up in your pictures under the camera roll section. at that point you can print it to a wifi printer, or just email it you and print it out from your computer..... i don't know if there is any other way to "print" the calendar.
    hope this helps in some way.

  • How do I print selected pages from a multi page document

    How do I print selected pages from a multi page document?
    This question was solved.
    View Solution.

    Hi,
    It depends on the software you are using, what is it ? In general you can select a range or just a number of pages.
    Regards
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Downpayment request

    Hi, When i am trying to map a down paymnet to down paymnet request, i am getting error as Tax amount different to expense/revenue account assignment - correct Message no. FF796 Diagnosis You have entered a manual tax amount in the first vendor or cus

  • Problem with setVisible(false)

    I everybody!! I have a some panels in a JFrame, disposed ones underneath the others. But when I make one of the bottom invisble doing: jPanel.setVisible(false); the ones in the top becomes down!! Is there any way to avoid this? Thanks in advance

  • Manually recorded audio is being truncated at beginning

    I'm recording narration for a Captivate 3 movie of a software demo. After I record the audio for a slide, I use the built-in audio editor to replace the "ramp-up" (noise) at the very beginning of the recording (usually about 0.7 seconds before the vo

  • Essbase Applications Not Starting..........Error 1054001

    Hi Experts, Issue: Essbase 9.3.1 Applications are not starting. Error: 1054001 Cannot load application "Inventory" with error number [4294967295] - see server log file. Server: Windows 2003. Till last friday all the applications were working fine. We

  • Invisible cursor in illustrator 5.5 after OSX Mavericks update

    Hi there, I realised, that after update to OSX Mavericks (10.9) there is almost invisible type cursor (as you hit T and try to edit text) in my Illustrator CS 5.5. Have you experienced this problem too? Well, it is not invisible, but like 10% black o