Adding a print button in InfoPath - InfoPath Dev
in

InfoPath Dev

Adding a print button in InfoPath

Last post 09-14-2015 08:37 AM by jefeW. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-14-2015 08:37 AM

    • jefeW
    • Not Ranked
    • Joined on 09-09-2015
    • Posts 4

    Adding a print button in InfoPath

    I'm trying to add an InfoPath button (similar to submit button) at the end of my form.  I'll admit I'm not the best with C# but I added the code below.  But it gives the error "Expression Expected" when I include the 2 "using namespace" lines.  Any help on this error or other ways to add a simple Print button would be appreciated.  (FYI, this is not published to SharePoint, just a stand alone form.)

     

    Public Sub btn_print_form_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)

    using namespace System.Drawing;

    using namespace System.Drawing.Printing;

     

                               this.print()

    End Using

    End Using

    End Sub

     

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