Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print and Close application

Status
Not open for further replies.

strosfan99

Technical User
Jun 4, 2010
3
US
I am trying to open .plt files and print them with Plotviewer. So far I am able to open these .plt files with plotviewer. My next step is to print and close each file.

any suggestions?

the strOption = " /print" doesn't seem to work.

Sub printplt2()

Dim sSourceDir As String
Dim sNextFile As String

sSourceDir = "C:\pdmsuser\"

sNextFile = Dir$(sSourceDir & "*.plt")

While sNextFile <> ""
strProg = """C:\AVEVA\PDMS11.6.SP5\plot\PlotViewer.exe"""
strFile = sSourceDir & sNextFile
strOption = " /print"
Shell strProg & " " & strFile & strOption
sNextFile = Dir$
Wend

Exit Sub

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top