Instructions
-
- 1
Create a new project in Visual Basic by clicking on "File" and "New project." Select "Console Application." Alternatively, you can just add the code from the rest of the tutorial anywhere you like within an existing project.
- 2
Paste the following code within Visual Basic to call the PDF print script:
dim filename = "C:\pdfFileToPrint.PDF"
Process.Start("printPDF.vbs " & filename)
-
- print cgm/emf/tiff/pdf
Sofware for GeoScience Professional EasyCopy/EasyPlot free trial
www.gdesigns.co.uk
- print cgm/emf/tiff/pdf
- 3
Click on "Project" and "Add new item." Select "Text File" and name it "printPDF.vbs."
- 4
Paste the following code within it:
Set fso = CreateObject("Scripting.FileSystemObject")
fullPath = fso.GetAbsolutePathName(WScript.Arguments(0))
WScript.CreateObject ("Shell.Application").Namespace(0).ParseName( fullPath ).InvokeVerb "&Print"
- 5
Save your work.
- 1