Page 1 of 1

Integrating Designer

Posted: Fri Nov 17, 2006 5:43 am
by spv123
I’m trying to integrate the forms designer into my code. Basically, I want the user to be able to modify a standard form and saves the copy locally. I do the following :

Code: Select all

            Dim bt As Byte() = dms.ReadFile("d:\dms\forms\" & FormName) ‘ Reads file from server using remoting call (this works!)
            Dim sti As New Stimulsoft.Report.StiReport
            With sti.Designer
                .CanDesignerChangeReportFileName = False
                .DontAskSaveReport = True
                '.ReportNeverSave = True
            End With
            sti.Load(bt)
            sti.Design()
            If System.IO.File.Exists("c:\dms\forms\" & FormName) Then System.IO.File.Delete("c:\dms\forms\" & FormName)
            Try
                sti.SaveDocument("c:\dms\forms\" & FormName)
	    catch
	    end try

The designer correctly appears with the form ready to edit. However, the saved form appears to be blank. Am I using the wrong technique to save the form ?

Thanks in advance
Simon

Integrating Designer

Posted: Fri Nov 17, 2006 12:33 pm
by Vital
Please use method Save instead SaveDocument.

Thank you.