Syntax
expression.TestEnvironment
Description
TestEnvironment method allows you to execute diagnostics of environment where
FlashSpring Server works and detect possible problems and errors.
Currently TestEnvironment method tests:
- possibility of Microsoft PowerPoint starting
- availability of ActiveSWF library
- availability of MSXML library
- possibility of temporaty folder creation
Return Value
Boolean. Returns True if testing completed successfully, otherwise returns False.
Example
This example checks availability of Microsoft PowerPoint, MSXML and
ActiveSWF and possibility to create temporary folder. If any of these
components are not available, an error description is displayed.
Sub SimpleSample()
Dim fs As New FlashSpringAPI.FlashSpring
If Not fs.TestEnvironment
Dim err As String
err = fs.LastErrorDescription
MsgBox "Error: " & err
Exit Sub
End If
fs.OpenPresentation "c:\test.ppt"
fs.GenerateFlash "c:\presentations", "myMovie.swf", OM_SOLID, "Standard"
fs.ClosePresentation
fs.ClosePowerPoint
End Sub