Hello, I am using to open an HTML file, and once again I'm getting an
css file air. I tried to use the same code as previously, namely:
StrToFile('','c:\scc.css')
However, FoxPro seems to be having a problem "seeing" this file. There's no doubt
that the file is there. If I go into Windows Explorer, it looks like this:
scc.css 0 bytes.
But, if, in FoxPro, I issue an: delete file(c:\'scc.css'), then FoxPro says
that the file does not exist. And if I manually, delete the file, and then
automate FoxPro to use Excel to open the HTML file, I still get the error
missing css file 'c:\css\zcom.css'.
Does anyone know a way around all of this?
Here's the code that I am trying to use:
HtmFile = "c:\d\zacks\zackpoint.htm"
** tries to remove the css file
StrToFile('','c:\scc.css')
StrToFile('','c:\css\zcom.css')
StrToFile('','c:\css\zcom.css')
StrToFile('','c:\css\scc.css')
o = CREATEOBJECT('excel.application')
o.Visible= .T.
o.Application.Workbooks.Open(HtmFile)
Thanks Steve
Previous
Next
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