 | 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
Syntaxbool GetViewToFile(
string viewName,
string fileName,
CmcLinkMode linkMode = CmcLinkMode.None,
string param1 = null,
string param2 = null
)
Function GetViewToFile (
viewName As String,
fileName As String,
Optional linkMode As CmcLinkMode = CmcLinkMode.None,
Optional param1 As String = Nothing,
Optional param2 As String = Nothing
) As Boolean
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:
Booleantrue on success. Use GetLastError on failure
See Also