this.Print(); not defined - InfoPath Dev
in

InfoPath Dev

this.Print(); not defined

Last post 03-11-2010 01:07 PM by khaos. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-11-2010 12:53 PM

    • khaos
    • Not Ranked
    • Joined on 03-11-2010
    • Posts 3

    this.Print(); not defined

    Given the code below on a form that has 4 fields and 1 button.  This is run in infoPath not the browser. 

    I get the error that 'xPrintx.FormCode' does not contain a definition for 'Print'  I thought that this derived from XMLForm.  Am I missing something.

    using Microsoft.Office.InfoPath;
    using System;
    using System.Xml;
    using System.Xml.XPath;

    namespace xPrintx
    {
        public partial class FormCode
        {
            public void InternalStartup()
            {
                ((ButtonEvent)EventManager.ControlEvents["PrintThing"]).Clicked += new ClickedEventHandler(PrintThing_Clicked);
            }

            public void PrintThing_Clicked(object sender, ClickedEventArgs e)
            {
                this.Submit();
                this.Print();
            }
        }
    }

    Filed under:
  • 03-11-2010 01:07 PM In reply to

    • khaos
    • Not Ranked
    • Joined on 03-11-2010
    • Posts 3

    Re: this.Print(); not defined

    So there I was looking through my Form options and the under compatibility the Browser compatibility was on.  So that was the entire issue.

     Thanks anyway,

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