.NET

Reply
Valued Contributor
Matt S
Posts: 64
Registered: ‎05-05-2004
Message 1 of 3 (110 Views)

Best way to View DWF on a form

110 Views, 2 Replies
07-03-2006 03:02 PM
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
*Tony Tanzillo
Message 2 of 3 (110 Views)

Re: Best way to View DWF on a form

07-04-2006 09:16 PM 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
*Rodney D. Lester
Message 3 of 3 (110 Views)

Re: Best way to View DWF on a form

01-05-2009 10:34 AM 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.