Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel print preview ??
Message
De
12/02/2004 14:58:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Excel print preview ??
Divers
Thread ID:
00876816
Message ID:
00876816
Vues:
54
Hi I want to switch excel to print preview insetad of the normal view
the following sample code hangs on the printpreview line?
LOCAL o as excel.application
o=CREATEOBJECT('excel.application')

o.Workbooks.Open('G:\vAppsNew\vCPR3\DocDir\ExcelTemplates\ChartofAccountsTemplate.xls')
oRange=o.Range("A6:E6")

o.ActiveSheet.paste()
*delete table headers
o.Range("A6").EntireRow.Delete()
o.activeWorkbook.SaveAs("PeterCortielAccount")
*o.ActiveWindow.SelectedSheets.PrintPreview()
o.Visible=.t.
any ideas why


Thanks

Peter
Peter Cortiel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform