...
- 1. Create a New Form application
- 2. Add a button to the form
- 3. Add Planswift to reference (Planswift9_tlb in the uses)
- 4. Copy code to button onclick event
API
...
Calls
Delphi
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
procedure TForm1.psSaveScreenShowt(Sender: TObject);
var
ps: IPlanSwift;
sdialog: TSaveDialog;
begin
//Create Planswift Interface
ps := coPlanswift.Create;
//Create a Save Dialog
sdialog := TSaveDialog.Create(form1);
try
if sdialog.Execute then
//Save Screenshot to dialog selected location
ps.SaveScreenShot(sdialog.FileName,true);
finally
//Free the dialog
sdialog.Free;
end;
//Free Planswift
ps := nil;
end; |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
C#
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
VB/VBA (OLE)
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Pascal Scripting (OLE)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Code Block | ||||
---|---|---|---|---|
| ||||
Pascal Scripting
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Code Block | ||||
---|---|---|---|---|
| ||||