-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.Services.DocumentService.print
rescocrm edited this page May 15, 2023
·
8 revisions
[v9.1] Prints the document defined by file path.
Argument | Type | Description |
---|---|---|
filePath | String | A file path. |
landscape | Boolean | True, to print the document in landscape. False, to print it in portrait |
errorCallback | function(errorMsg) | The error callback which is called in case of error. |
scope | Object | The scope for callbacks. |
This example demonstrates how to print a file.
function printFile(filePath) {
/// <param name="filePath" type="String">A relative path to the file based on the application data root.</param>
var service = new MobileCRM.Services.DocumentService();
service.print(filePath, false, MobileCRM.bridge.alert, null);
}