oExcel.ActiveWorkBook.PrintPreview()To Build an Excel Header using automation
.ActiveSheet.PageSetup.RightHeader = cdow(date())+[ ]+cmonth(date()); +str(day(date()),3)+str(year(date()),5)+[:]+left(time(),5); +Chr(10) + "Page &P of &N" + Chr(10) + "Ref:&F"Merge cell commands:
* Column Headers .Range("E1:F1").Select .Selection.MergeCells=.t. .Selection.HorizontalAlignment=3You can record Excel macros, and convert them to VFP compliant automation. I have a procedure I used a couple years back that you study as you work your project. I'll email a sample Excel Print Preview VFP Automation if it will help!