Click or drag to resize

ICommenceDatabaseGetViewToFile Method

Saves the Commence View to a file in HTML format (similar to the File-Save As HTML menu command). If the file does not exist, Commence will create it; the drive and directory must exist. If the file exists, it will be overwritten.

Namespace:  Vovin.CmcLibNet.Database
Assembly:  Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntax
bool GetViewToFile(
	string viewName,
	string fileName,
	CmcLinkMode linkMode = CmcLinkMode.None,
	string param1 = null,
	string param2 = null
)

Parameters

viewName
Type: SystemString
Commence view name (case-sensitive)
fileName
Type: SystemString
(fully qualified) filename
linkMode (Optional)
Type: Vovin.CmcLibNet.DatabaseCmcLinkMode
LINKMODE values0No view linking (default).1View linking on selected item; Param1 = category name; Param2 = Item name [clarify issues?]2View linking on selected date; Param1 = date string (including AI dates); Param2 = unused3View linking on selected date range; Param1 = start date string (including AI dates); Param2 = end date string (including AI dates)
param1 (Optional)
Type: SystemString
Used with view linking to identify the "active item/date/date range" when the view contains a "view linked" filter.
param2 (Optional)
Type: SystemString
Used with view linking to identify the "active item/date/date range" when the view contains a "view linked" filter.

Return Value

Type: Boolean
true on success. Use GetLastError on failure
See Also