General information
Category:
COM/DCOM and OLE Automation
Try
oExcel.ActiveWindow.SelectedSheets.PrintOut()
>>>>>>>>Your mesage below
Hey All,
Does anyone know how to make Excel print a spreadsheet after it's open from VFP using OLE automation? Existing code is below, thanks for the help.
Jim
oExcel=CREATEOBJECT("Excel.Application")
oExcel.Workbooks.Open(SYS(5) + SYS(2003) +"\docs\compat.xls")
oExcel.Visible=.T.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only