.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Best way to View DWF on a form

2 REPLIES 2
Reply
Message 1 of 3
Matt S
234 Views, 2 Replies

Best way to View DWF on a form

What's the best way to view a DWF file on a windows form? I don't need to edit anything, just display the contents of a single page dwf file.

Thanks
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Matt S

Windows forms can host activex controls.

http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5226017@discussion.autodesk.com...
What's the best way to view a DWF file on a windows form? I don't need to edit anything, just display the contents of a single page dwf file.

Thanks
Message 3 of 3
Anonymous
in reply to: Matt S


What about in XP Pro 64 Bit... I cant get the
ExpressViewerDll 1.0 Type Library to show on a form...  This same control
with build and load fine on XP Pro.

 

See the exeption that is a result:

 



size=2>System.InvalidOperationException: An error occurred creating the form.
See Exception.InnerException for details. 
The error is:  is not a valid
Win32 application. (Exception from HRESULT: 0x800700C1) --->
System.BadImageFormatException:  is
not a valid Win32 application. (Exception from HRESULT: 0x800700C1)



size=2>   at
System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid,
Object punkOuter, Int32 context, Guid& iid)



size=2>   at
System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateInstance()



size=2>   at
System.Windows.Forms.AxHost.GetOcxCreate()



size=2>   at
System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)



size=2>   at
System.Windows.Forms.AxHost.CreateHandle()



size=2>   at
System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)



size=2>   at
System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)



size=2>   at
System.Windows.Forms.AxHost.EndInit()



size=2>   at
GPS.frmViewED.InitializeComponent() in C:\Documents and
Settings\rlester.GMSINC\My Documents\Visual Studio
2008\Projects\GPS\Forms\Extrusions\frmViewED.Designer.vb:line
113



size=2>   at
GPS.frmViewED..ctor()



size=2>   --- End of inner
exception stack trace ---



size=2>   at
GPS.My.MyProject.MyForms.Create__Instance__(T Instance) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 190



size=2>   at
GPS.My.MyProject.MyForms.get_frmViewED()



size=2>   at
GPS.frmExtrusions.Dt_ExtrudersDataGridView_CellContentClick(Object sender,
DataGridViewCellEventArgs e) in C:\Documents and Settings\rlester.GMSINC\My
Documents\Visual Studio 2008\Projects\GPS\Forms\Extrusions\frmExtrusions.vb:line
127



size=2>-----------------------------------------------------------------------------------------------------



size=2>System.BadImageFormatException: 
is not a valid Win32 application. (Exception from HRESULT:
0x800700C1)



size=2>   at
System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid,
Object punkOuter, Int32 context, Guid& iid)



size=2>   at
System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)



size=2>   at
System.Windows.Forms.AxHost.CreateInstance()



size=2>   at
System.Windows.Forms.AxHost.GetOcxCreate()



size=2>   at
System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)



size=2>   at
System.Windows.Forms.AxHost.CreateHandle()



size=2>   at
System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)



size=2>   at
System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)



size=2>   at
System.Windows.Forms.AxHost.EndInit()



size=2>   at
GPS.frmViewED.InitializeComponent() in C:\Documents and
Settings\rlester.GMSINC\My Documents\Visual Studio
2008\Projects\GPS\Forms\Extrusions\frmViewED.Designer.vb:line
113



size=2>   at
GPS.frmViewED..ctor()


 

 

Windows forms can host
activex controls.


face=Arial size=2>http://www.caddzone.com



size=2>AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007

href="http://www.acadxtabs.com">
size=2>http://www.acadxtabs.com



size=2><Matt S> wrote in message

href="news:5226017@discussion.autodesk.com">
size=2>news:5226017@discussion.autodesk.com

size=2>...
What's the best way to view a DWF file on a windows form?  I
don't need to edit anything, just display the contents of a single page dwf
file.

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost