Showing results for 
Search instead for 
Did you mean: 

SaveAsXML function create an invalid .srf file??

Former Member
0 Kudos

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?


Harianto Ng

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos


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