The DicomObjects collection implements the IObjectSafety interface, which enables all objects to be placed into a “Safe for Scripting” mode. For security reasons the user’s explicit permission is required before outgoing network operations are allowed or files are read or written to whilst in this mode, which is activated automatically when a viewer is included on a web page as an ActiveX object. The methods affected by this restriction are:
ReadFile
WriteFile
ReadDirectory
WriteDirectory
ReadURL(if the URL refers to a local file)
Send
FileImport
FileExport
Creation of a DicomQuery or outgoing DicomConnection object
The DicomViewer is registered as “Safe for Initialising” at all times.