Skip to Content
author's profile photo Former Member
Former Member

SaveAsXML function create an invalid .srf file??

Hi All,

I tried to save a form (my own form created using screen painter) using SaveAsXML function included as an SDK example. But the saved .srf file cannot be opened using the screen painter or be re-loaded into the Application.

This is how i save the form:

1. Load the .srf file into the application

2. In form unload event, i get the XML using Form.GetAsXML and store it into XMLDocument

3. Save the XMLDocument as a .srf file

Surprisingly, when i try to reload the form with the latest .srf file, the system give me a blank form. I tried to open the latest file using Screen Painter, but it only give me a blank form.

Does anybody know whether this is a bug in the SDK?

Cheers,

Harianto Ng

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 20, 2006 at 05:51 AM

    Hi

    You better take the xml string and paste it into notepad and save using unicode coding.

    Regards

    Ad

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.