Sign In  Sign Up Live-Chat

Using Aspose.Form in a custom control

Last post 07-31-2008, 3:37 PM by WhirreledPeas. 12 replies.
Sort Posts: Previous Next
  •  09-25-2007, 2:04 PM 96128

    Using Aspose.Form in a custom control

    I am evaluating several different frameworks for a website and I am thinking of using DotNetNuke (an ASP.NET framework).  However, I thought it would be interesting to see if Aspose.Form could be used inside a custom DotNetNuke module which is an ascx.

    My question is can Aspose.Form be used inside a custom web control?  I've downloaded the evaluation version to see if that might work.  It renders fine, but the XMLDataString value does not hold the values I enter into the form.  The xml without my data entry values does display in my test textbox.  Other controls I place on the page retain their values so I thought this control would do the same.  It would be wonderful if I could reuse my code in several spots in my new website.

    So before I spend even more time on this, is there some basic reason you can think of why this wouldn't work?

    (I am a newbie so sorry if this ends up being a no-brainer.)

     
  •  09-26-2007, 1:00 AM 96188 in reply to 96128

    Re: Using Aspose.Form in a custom control

    Hi,

    Thank you for considering Aspose.

    I will check with the developers to see if this is supported. We will informa you as soon as possible.


    Many Thanks & Kind Regards,

    Ammad-ul-Haq
    Support Developer,
    Guangzhou Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

     
  •  09-27-2007, 4:01 AM 96387 in reply to 96188

    Re: Using Aspose.Form in a custom control

    Hello,

    We can support this feature. But we need some time to fix the bug on it.

    Could you please tell me your timeline?

    Thanks,


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  09-27-2007, 9:27 AM 96436 in reply to 96188

    Re: Using Aspose.Form in a custom control

    Thanks for looking into this.  I appreciate your time.

    I will need to know if a custom control is possible by the end of November.  It would be ideal to have an updated component within a month after that.

     
  •  06-03-2008, 8:15 PM 129927 in reply to 96436

    Re: Using Aspose.Form in a custom control

    It's been six months.  How's the development going with using Aspose.Forms in a custom ascx control?  Will I every be able to use this with DotNetNuke?  If you can get it to work in a custom control, I'll make a free module using the demo version for your prospective customers to download.

     
  •  06-04-2008, 11:31 AM 130061 in reply to 129927

    Re: Using Aspose.Form in a custom control

    Hello,

    Sorry for my delay. This bug has been fixed. I will attach the hotfix to you soon.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-05-2008, 5:00 AM 130145 in reply to 130061

    Re: Using Aspose.Form in a custom control

    Attachment: Present (inaccessible)

    Hello,

    Please check the beta dll.

    Here is the change list

    1. Use Aspose.Form.Web.UI.WebControls.XmlFormViewer to replace the FormControl

    2. add httpmodule to your web config as following

    <httpModules>
       <add name="CustomModule" type="Aspose.Form.Web.UI.WebControls.Custom.CustomHttpModule, Aspose.Form"/>
      </httpModules>
      <xhtmlConformance mode="Legacy"/></system.web>
    </configuration>

    3. custom control samples:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
     <%@ Register TagPrefix="cc1" Namespace="Aspose.Form.Web.UI.WebControls" Assembly="Aspose.Form" %>
     <cc1:XmlFormView runat="server" id="MyWizard"
            Font-names="verdana" 
            BackColor="lightcyan"
            ForeColor="navy"
            Style="border:outset 1px black"
            XsnLocation="D:\\codestore\\aspose.form2\\Src_vNext2\\GeneralDemo\\ABSNCREQ.XSN">       
        </cc1:XmlFormView>

     

     


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-05-2008, 4:25 PM 130251 in reply to 130145

    Re: Using Aspose.Form in a custom control

    Attachment: Present (inaccessible)

    Tried this out a little this afternoon .  I followed the directions above.  Here is what I found.

    1.  If I tried to set XsnLocation through code, I would get an error of "XsnLocation should be null or empty."  I had to use the properties pane to set the XsnLocation.

    2.  If I had an xml file without any child nodes, I would be able to get the xmlDataString with values where they were supposed to be.

    3.  If I had an xml file with the child data in a repeater element, the xmlDataString would not have any values for the child nodes.

    4.  If I had an xml file with the child data in a table element, the xmlDataString would have values for the child nodes.

    5.  The Insert button would not work for number 3 nor for number 4 above.

    I've attached a slightly modified xsn based on a sample you had provided earlier. 

    I'll be out of town tomorrow and this weekend.  I'll check back Monday to see if you could reproduce the problem.

    Thank you for your work on this so far.


     

     

     

     
  •  06-07-2008, 7:16 PM 130456 in reply to 130251

    Re: Using Aspose.Form in a custom control

    Attachment: Present (inaccessible)

    I fixed 1st issue. The insert for repeat element is on the context menu.

    I will try to investigate other issues.


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-09-2008, 11:15 AM 130576 in reply to 130456

    Re: Using Aspose.Form in a custom control

    I can't get the insert button nor the insert context menu to insert.  Do you have a sample of Aspose in a user control that you have working?  I can try to see if it is something in the DotNetNuke environment that is giving me problems.  I've tried with AJAX and without. 

    Laurie

     
  •  06-12-2008, 9:39 AM 131118 in reply to 130576

    Re: Using Aspose.Form in a custom control

    Attachment: Present (inaccessible)

    Hello,

    Right click the repeatable raws will triger the menu to insert/remove them.Check the attached image.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  07-13-2008, 3:00 PM 135343 in reply to 131118

    Re: Using Aspose.Form in a custom control

    Any progress on this one? I'm trying to develop a DNN module with the ASPOSE. Form control. I get two errors:

    • On design view, the control is not visible, shows an error regarding the enableSessionState being not true and recomending to add an entry on httpModules for that matter (whitch if I do, throws an exception: not able to load the assembly).
    • The inputed data is not reflected in the XMLString coming from the XmlFormView control.

    I'm using Vista 64 bit by the way, hope is not a problem.

    Thanks in advance

     
  •  07-31-2008, 3:37 PM 137823 in reply to 129927

    Re: Using Aspose.Form in a custom control

    Would love to have DNN \ apsose.form module. It's the only hope I have to rescue me from a dark future of trying to learn SharePoint for internet deployment.

    Just some encouragement!!
    Thanks!
     
View as RSS news feed in XML