Excel 2007 question - SOLVED

Excel 2007 question - SOLVED

Postby Jeff Barnes » Thu Feb 26, 2009 5:58 pm

Hi Everybody,

I would like to do a "Save As PDF" in excel 2007 via FWH.
I have installed the excel plugin but need to know how to issue the saveas from within my program to create the PDF file.


Any ideas?
Last edited by Jeff Barnes on Wed Mar 04, 2009 1:55 pm, edited 1 time in total.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Excel 2007 question

Postby Jeff Barnes » Thu Feb 26, 2009 7:43 pm

this is what I get when I record a macro and edit it....


Code: Select all  Expand view
   ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\Documents and Settings\jbarnes\My Documents\Book1.pdf", Quality:= _
        xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
        OpenAfterPublish:=False
 


Can someone please help me to translate this to FWH?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Excel 2007 question - SOLVED

Postby Jeff Barnes » Wed Mar 04, 2009 1:54 pm

I have found the solution...

Code: Select all  Expand view

oSheet:ExportAsFixedFormat( 0, cFilename )
 
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests