Attachfilestoemail, Description backupdatabase, Description – Teledyne LeCroy WavePro Automation Command User Manual

Page 129

Advertising
background image

Automation Command and Query Reference Manual - Control Reference

' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")

' Save the current state of the DSO into the Notebook
app.LabNotebook.ScribbleBeforeSaving = False
app.LabNotebook.PromptBeforeSaving = False
app.LabNotebook.Save

' Create a PDF report, and store it in the root of drive
C:app.LabNotebook.ReportsDirectory = "C:\"
app.LabNotebook.Format = "PDF"
app.LabNotebook.CreateReport

' Send the report in an email
app.Preferences.Email.Mode = "SMTP"
app.Preferences.Email.DefaultRecipient = "[email protected]"
app.LabNotebook.EMailRecord

Example

AttachFilesToEMail

Bool

If true, the DSO Setup, and all enabled waveforms will be attached to any emailed report.

Description

BackupDatabase

Action

Backup the current LabNotebook database. Note that this control will present a modal dialog,
prompting for the backup filename and folder.
Use the BackupToFolder control to skip the dialog.

Description

FlashBackToRecord

Action

Format

Enum

HardcopyArea

Enum

InternalView

Action

MyLabNotebookMD

FileName

NextRecord

Action

PreviousRecord

Action

PrintRecord

Action

PromptBeforeSaving

Bool

RecordList

Enum

ReportLogo

FileName

ReportsDirectory

FileName

Save

Action

ScribbleBeforeSaving

Bool

StartNew

Action

UseDefaultLogo

Bool

UseDefaultTemplate

Bool

UsePrintColor

Bool

ViewRecord

Action

XSLTemplate

FileName

1-115

918501 RevA

Advertising
This manual is related to the following products: