Print Multiple View problems - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Print Multiple View problems

Last post 05-13-2013 09:19 AM by mcminmark. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-07-2013 01:55 PM

    Print Multiple View problems

    I have created a Shipping Request Form and have been using it for years.  It is posted to SharePoint and sent to print via code this.Print(true);InfoPath 2010 is being used.Recently I was asked if I could create a Packing Slip to go with the product we ship, so I created another view, and would like the option to print that when needed.  I now have three views:Entry; SFR (what has always been printed); Packlist (new option)Here are my challenges:  When the default print window pops up I can change "Multiple Views" Settings... (the Print Multiple Views window) to include the Packlist view, but even when "Separate views with: Page break" is chosen, it still prints them together!  I need this on different pages because one stays with us, one goes with the material. Initially I thought I would need to add a Pack List Button and code the view to be printed, but I am not sure how to do that.  But now I am stuck because the out of box option does not work properly.  I am also having right side truncation problems of forms in some situations. 

     

  • 05-13-2013 07:19 AM In reply to

    Re: Print Multiple View problems

    In each of the views, set the contents within a Section, and hard code the section's height and width to make sure they occupy one page each.

    You'll have a lot of trial and error to make sure the printed page looks ok, but this height/width hack guarantees each view fits in one page.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 05-13-2013 08:56 AM In reply to

    Re: Print Multiple View problems

    Will this work if I use a Repeating Table?  Sometimes (if a lot of items are listed) the first print view page will push to more than one page long.

  • 05-13-2013 09:07 AM In reply to

    Re: Print Multiple View problems

    Ok, my advice won't work then. If we don't know ahead of time the size of each section, my method won't help you.

    I'm not sure why "Separate views with: Page break" is not working.

    I don't know much about coding, but would the code allows you to print one view first, then run the code again to print the second view? This would likely result in forcing a page break.

     

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 05-13-2013 09:19 AM In reply to

    Re: Print Multiple View problems

    My experience is just about anything is possible using code, but I will always attempt to make it work without it, if it’s possible.  If anyone has an idea on what the code might entail please let me know.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.