Integrating Designer
Posted: Fri Nov 17, 2006 5:43 am
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 :
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
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
Thanks in advance
Simon