Print Specific Repeating Section - InfoPath Dev
in

InfoPath Dev

Print Specific Repeating Section

Last post 04-16-2008 06:24 AM by pmbaker86. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-12-2008 06:58 PM

    Print Specific Repeating Section

    I have a form with a repeating section so I have the main data in the top part and the ticket information in the repeating section.  I need to be able to print just the data in a specific repeating section combined with the main data.  So the user will click print and print just the data in repeating section one.  Then later click print and print only the data in repeating section two.  I would like to use Word to print this out but do not know how to send just one record to Word. 

  • 04-14-2008 12:53 AM In reply to

    • Albert
    • Top 500 Contributor
    • Joined on 04-03-2008
    • The Netherlands
    • Posts 32

    Re: Print Specific Repeating Section

    As far as I know there isn't an easy solution. One of the following approaches might solve you problem:

    1. Add a status field to your datasource and apply conditional formatting to two different sections (for example: hide section2 if status != "print_section_2" ). Combine this with a printview as you like. Weakness of this approach is when en how to trigger change in status field. Maybe you could add a button to your form where you set the statusfield and call the Print() method (requires full trust & InfoPath 2007 i think) and disable the 'Print' button in form options. 
    2. Use status field & conditional formatting on sections and export to MHT. Open MHT in Word 2007.
    3. Use status field and save xml. Use xml as base for a Word 2007 document, so you are not sending 'just one record', but complete maindatasource. Let Word handle what a user will see/print. If you need more information http://msdn2.microsoft.com/en-us/library/bb243814.aspx might be a good starting point.

    You failed to mention what version you are using, so i assumed it is Office 2007.

    Albert

  • 04-16-2008 06:24 AM In reply to

    Re: Print Specific Repeating Section

    Yes it is InfoPath 2007.

    My solution might be to have a third view on my form.  Have a print button that passes the needed values to that view (and to my other view for database posting) and then print the data in that view.  That way each time the button is clicked on the repeating section that data is transferred to the correct view.  This also solves a previous problem of creating 200 rules for data movement.  I will be testing this over the next few days.  Thanks for the response - I needed something to spawn my thinking.
     

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.