Setting FileName in HTML Page

Discuss and ask questions about CADViewX (Lite and Pro versions).

Moderators: SDS, support, admin

Post Reply
GazzaJ
Posts: 5
Joined: 07 Mar 2010, 17:28

Setting FileName in HTML Page

Post by GazzaJ » 29 Nov 2010, 14:09

I have successfully integrated the CADVIewX control into an ASP.NET application and have been trying to get a page to load with the CADViewX control set to a certain file.

I have been setting the FileName parameter of the control in the HTML e.g.
<object id=CADViewX height=1000 width=1000 classid=clsid:F5F6C0A5-0D6F-41F6-932C-BB1D4F3566D5 name=CADViewX VIEWASTEXT>
<param NAME="AutoScroll" VALUE="0">
....
<param NAME="FileName" VALUE="http://www.soft-gold.ru/cadsofttools_demo.dxf">

etc

The above code works and will open the demo file.
If I change this to say
<param NAME="FileName" VALUE="http://localhost/sample.dwg">

The above file exists but does not load.

I have added a text box and button to the page like in your sample and if I enter the above file name in the text box and press the button it does load. But it won't by setting the FileName parameter.

Do you know any reason for this?

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Setting FileName in HTML Page

Post by support » 01 Dec 2010, 18:26

Hello.
Please make sure the localhost url is correct. I attach screen shot as example.

Alexander.
Attachments
localhost.jpg
localhost.jpg (146.48 KiB) Viewed 27894 times
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply