Setting FileName in HTML Page
Moderators: SDS, support, admin
Setting FileName in HTML Page
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?
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?
Re: Setting FileName in HTML Page
Hello.
Please make sure the localhost url is correct. I attach screen shot as example.
Alexander.
Please make sure the localhost url is correct. I attach screen shot as example.
Alexander.
- Attachments
-
- localhost.jpg (146.48 KiB) Viewed 27893 times
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support