Integrating Designer

Stimulsoft Reports.NET discussion
Post Reply
spv123
Posts: 26
Joined: Mon Oct 02, 2006 8:07 am
Location: Sheffield, UK

Integrating Designer

Post 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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Integrating Designer

Post by Vital »

Please use method Save instead SaveDocument.

Thank you.
Post Reply