>>Pls note that as my code is currently creating files of office 95, it is creating word.basic object...
>>
>>but when I try to run the same program in Office 97, it starts giving error...
>>
>
>What code is causing an error, and what is the error message? In my experience, WordBasic has been 100% compatible with Office97...
i guess U r right !! Very sorry... i got mixed up in 2 projects... It was not word, it was Excel...(actually i'm transferring in both depending on req.)..
I don't remember the exact error message, but this is the code which i'm trying..(i'm not posting the whole code, but this is how i was writing..)
***************
x=crea("Excel.Sheet")
if x.application.version="8" && This was added afterwards when i got the err
Wait window "Cannot Create Excel sheet in Office 97"
release x
return
Endif
Wait Window "Setting Headings & Paper size..." Nowait
WITH X.PageSetup
.PaperSize = 9
.Orientation = 2
.FitToPagesWide = 1
.FitToPagesTall = 10
.Zoom=.f.
.LeftHeader = '&"Arial,Bold"&14'+allt(uppe(config->heading))+;
' ALPINE PRODUCTION CALENDAR'
.RightHeader = '&"Arial,Bold"&14UPDATED ON &D'
.centerheader=''
.CenterFooter="Page &P of &N"
.centerhorizontally=.t.
.centervertically=.t.
.printTitleRows="$1:$2"
.PrintGridlines=.f.
ENDWITH
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