Infopath cannot create a new blank form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath cannot create a new blank form

Last post 01-20-2005 11:31 AM by Greg Collins. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-13-2005 04:51 AM

    Infopath cannot create a new blank form

    Hi All,
    I've been using the following code to
    open one infopath form via another another infopath form using the
    newFromSolution function. I then append an XML node to the targeted opened form.
    After launching the another application and passing the data for about successfully for about 20 times, I've got the error message:
    "Infopath cannot create a new blank form.Infopath cannot load this
    form. The signature from this form is not from a trusted publisher"


    Any help will be appreciated. Thanks in advance.

    The code snippet are as follows:


    public void btnDetails_OnClick(DocActionEvent e)
    {
    IXMLDOMNode ndDtl;
    DOMNodeList ndListAttch;
    XDocument xsnItemDtl;
    try
    {
    ndListAttch = this.thisXDocument.DOM.selectNodes("//mstns:AttachmentDT");
    ndDtl = e.Source;
    string strXSNName = this.m_infHelper.GetPTDItemDetailFormName(this.m_xsnKey);

    xsnItemDtl = this.thisApplication.XDocuments.NewFromSolution(strXSNName);
    this.m_infHelper.OpenItemXSN(xsnItemDtl,ndDtl,ndListAttch);
    }
    catch(Exception ex)
    {
    this.thisXDocument.UI.Alert(ex.Message);

    }
    finally
    {
    ndDtl = null;
    ndListAttch = null;
    xsnItemDtl = null;
    }

    }
  • 01-13-2005 04:38 PM In reply to

    Re: Infopath cannot create a new blank form

    So you are saying this same code works about 20 times and then stops?

    Greg Collins [InfoPath MVP]
  • 01-13-2005 05:05 PM In reply to

    Re: Infopath cannot create a new blank form

    I did additional test, it may not be the the number of times. But rather the elapse time when I click the button since launching the first form.

    What I realise is after launching the first screen, if I leave it there for 1 to 2 mins, and return to click on the button the samee error occures.

    In addition,after clicking a couple of times in quick succession, I intentionally left the first sceen as it is over an elapse time of 1-2 mins. The same error occurs.


    Not sure what is going on here.

    The reason for doing it was I've got a
    listing in a table with data from an xml generated by .net dataset. When I click on the a "Details" button of the selected, another form with details information related to current selected record is supposed to be shown.


  • 01-18-2005 06:03 PM In reply to

    Re: Infopath cannot create a new blank form

    One more question -- so are you thinking that the problem is related to the NewFromSolution call? or something else? I'm trying to narrow some ideas down here.

    Greg Collins [InfoPath MVP]
  • 01-18-2005 09:16 PM In reply to

    Re: Infopath cannot create a new blank form

    Hi
    I did a search and found knowledge Base alert 867441. I followed the instruction and the error no longer occurs.
    Thank You for your time.

    regards
    Yeow Mun
  • 01-20-2005 11:31 AM In reply to

    Re: Infopath cannot create a new blank form

    Glad to hear you got it fixed!

    Greg Collins [InfoPath MVP]
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.