[Closed] error in Creates a Microsoft Excel
What is rong here ?
this is the script :
“Creates a Microsoft Excel spreadsheet inside an embedded Microsoft Internet Explorer browser control.
It also registers the rollout as an extended viewport –
Sample Script”
rollout rExcel “Excel”
(
activeXControl ax “e:\ est.xls” height:250 width:370 align:#center
)
fExcel = newRolloutFloater “Excel” 390 270
addRollout rExcel fExcel
format “—-Application—-”
showProperties rExcel.ax.application
format “—-Parent—-”
showProperties rExcel.ax.parent
format “—-Container—-”
showProperties rExcel.ax.container
– In case of MS Excel .document points to the msexcel.workbook
workbook = rExcel.ax.document
format “—-Document—-”
showProperties workbook showHidden:true
showMethods workbook showHidden:false
props = getPropNames workbook
sort props
for prop in props do
(
try
(
format ” %=%
” (prop as string) (getProperty workbook prop)
) catch ()
)
This looks to be an internet explorer issue, basically this script opens the excel page in an internet explorer activex control. When I ran this sample it prompted me to open the test.xls page or save it to my drive, when I chose to open it, it displayed the spread sheet, although it has visual anomolies. If I chose to save or closed the IE prompt window it showed what you had for an error. I’d say that you have set your IE to always download files and not prompt you for what to do with them, I’m sure I’d do the same if I ever used IE. Try using the excel activex control instead of the IE embed xls method. Here is a maxscript activex browser that lists all activex controls on you computer.
[color=wheat][size=3]here is the result
rollout[/color][/size] controlR122 “Microsoft Office Spreadsheet 11.0”
( local createdOK = false
activeXControl ax “{0002E559-0000-0000-C000-000000000046}” height:950 width:950 align:#left setupEvents:false
on controlR122 open do createdOK = true)
nr122 = newRolloutFloater “Microsoft Office Spreadsheet 11.0”[size=2] 1000 700 10 10
addRollout ControlR122 nr122
but is weird … i can`t write positive numbers [ 2, 4, 6, 8 ,10 … ]
Why?
[/size]