How do you print a "print view" with code? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How do you print a "print view" with code?

Last post 05-06-2010 10:01 AM by bryanstrader. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-05-2010 11:11 AM

    How do you print a "print view" with code?

    I want to create two buttons on a view. One will print all my print views, the other will print only a few of my print views. This means I need the ability to code which views will print. Can anyone help me on this please? Thanks in advance!
    Bryan Strader
    Software Developer
    Filed under: , , ,
  • 05-05-2010 11:44 PM In reply to

    Re: How do you print a "print view" with code?

    check this

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 05-06-2010 10:01 AM In reply to

    Re: How do you print a "print view" with code?

    I'm working with 2007, and am not seeing some of the methods they are mentioning. The only thing I've been able to find is this.Print(), which allows you to pass a bool parameter to determine whether or not to show the print dialog.

    This would work great if I was printing the whole form. My typicall print settings is to print multiple views.  I want to do this with code... 

    if (thisCondition)

    {

    this.ViewInfos[0].print():

    else

    this.ViewInfos[1].print():

    }

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