Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic HOW TO SHOW PICTURE IN A BOX (Read 4407 times)
Ashish Agarwal
Guest


HOW TO SHOW PICTURE IN A BOX
Sep 22nd, 2005 at 3:41pm
Print Post  
I am creating a box using createbox method.
set ObjBox = fc.CreateBox(intXPos, intYPos, intHeight_OA, intWidth_OA)

After this I am setting it's properties like this

objbox.picture = "Globe.gif"
objbox.transparent = true

It gives me an error
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'objBox.picture'
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: HOW TO SHOW PICTURE IN A BOX
Reply #1 - Sep 22nd, 2005 at 4:24pm
Print Post  
The box' Picture property is of type 'OLE Picture', e.g. the VB StdPicture type. You can't assign a string to it.
  
Back to top
 
IP Logged
 
Ashish
Guest


Re: HOW TO SHOW PICTURE IN A BOX
Reply #2 - Sep 22nd, 2005 at 5:57pm
Print Post  
I an using an ASP file. What do I need to use as an alternate for StdPicture
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: HOW TO SHOW PICTURE IN A BOX
Reply #3 - Sep 23rd, 2005 at 5:07am
Print Post  
If you create the diagram on the server side, I guess you can use Box.LoadPicture(fileName) method. If on the client side, I don't know how to do that; you might try assigning to the picture the value of an HTML IMG object.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint