AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / is it possible to do more in Excel using ActiveX?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

is it possible to do more in Excel using ActiveX?
Rate this thread
 
21492
 
Permlink of this thread  
avatar
  • Total Posts: 6
  • Joined: 27 July 2007 06:37 AM

I’m using Viz 2006 or dot.net would probably be the way forward here…
I know how to insert an exel file into a dialogue as in this example:

rollout rExcel “Excel”
(
activeXControl ax “c:\\test.xls” height:300 width:300
)
fExcel = newRolloutFloater “Excel” 390 270
addRollout rExcel fExcel

But can anyone give me a practical example of how I can get or set cell information? I’ve seen all the help files out there, but I’m stumped!
I know I can do this using OLE automation but I wanted to avoid that because you can’t integrate the excel document into a dialogue like you can with axtivex.
Thanks

--
PS I’ve tried show propeties and show methods etc, and still none the wiser!



Replies: 0
avatar
  • Stokes
  • Posted: 19 January 2009 10:59 AM
  • Location: Boston Area, Massachusetts
  • Total Posts: 198
  • Joined: 22 August 2006 03:52 PM
  • Permlink of this post

I tried your example, and the Excel document is opening in a web browser; this would be why none of the Excel methods are working. Can you explicitly create an Excel AX control and then load the page into that?



David “Stokes” Stokes
Senior Technical Artist, Blue Fang Games

Replies: 0
avatar

Thanks for replying! I’ve had a go but I think the excel activex control needs to be created in a rollout, so I don’t think I can define it, and then add it to a different control (unless I don’t fully understand how activex works, which is very likely lol)



Replies: 0
avatar
  • pen
  • Posted: 21 January 2009 09:45 AM

Are you still in Max 8? Sorry if this has already been answered but you should be using dotNet if
you are in Max 9 or above.

kungmongied wrote:
> Thanks for replying! I’ve had a go but I think the excel activex control needs to be created in a rollout, so I don’t think I can define it, and then add it to a different control (unless I don’t fully understand how activex works, which is very likely lol)



Paul Neale
PEN Productions Inc.
penproductions.ca / paulneale.com
Master Classes for Max, Mudbox and Composite
DotNet Tutorials

MX Driver Car and Trailer Rig On Sale!

Replies: 0
avatar

penn 21 January 2009 12:45 PM
Are you still in Max 8? Sorry if this has already been answered but you should be using dotNet if
you are in Max 9 or above.

Nope, I’m using Viz 2006 and there’s no .net. I’m trying to convince the boss we need to upgrade but no luck so far!



Replies: 0