Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWF to BitMap in VBA

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
493 Views, 4 Replies

DWF to BitMap in VBA

I have searched the posts but have not found anything I can use.

I am expanding an existing Access Application to allow users to search for drawings that have records in an SQL Server Database, and view them using a DWF ActiveX control. This part has been accomplished.

I want to also have a small image on the Access Form that shows what the DWF looks like. The image control requires a .bmp file. I want to write some VBA code to create .bmp files from .dwf images.

Any suggestions?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

If your images/DWF files are not super-secret, you might want to check
out the image service of Project Freewheel
(http://freewheel.labs.autodesk.com)

http://freewheel.labs.autodesk.com/webdevelopers.aspx

For example, the following will render a hotel example image:
http://freewheel.labs.autodesk.com/dwfImage.aspx?cx=0.5&cy=0.5&scale=4&sec=3&width=200&height=200
&path=http://freewheel.labs.autodesk.com/sample/Hotel5.dwf

to embed this into an HTML page, you just have to put it into an image tag.

It can handle url-s but files can be uploaded as well, upon which you
get back a URL referring to the cached uploaded file.

Hope this helps,
Gyuri

LandLocked wrote:
> I have searched the posts but have not found anything I can use.
>
> I am expanding an existing Access Application to allow users to search for drawings that have records in an SQL Server Database, and view them using a DWF ActiveX control. This part has been accomplished.
>
> I want to also have a small image on the Access Form that shows what the DWF looks like. The image control requires a .bmp file. I want to write some VBA code to create .bmp files from .dwf images.
>
> Any suggestions?
Message 3 of 5
Anonymous
in reply to: Anonymous

Gyuri:

Thanks for the quick response. I don't think this can help me because I am using an Access Form, not a web page. If I could turn the clock back a few years (or forward for that matter) I would make the application strictly web based.

I may just use one of the DWF Active-X controls, but then users that don’t have DWF installed on their computers would not be able to see the previews and I would have to think of a way to avoid errors. The upside is I would not have separate files for .dwf’s and .bmp’s.

Any other suggestions, from anyone?
Message 4 of 5
Anonymous
in reply to: Anonymous

Most dwfs have a thumbnail implemented in them for each of the views, I simply extract this and display to the user in a open dialog window etc..

Now, I dont know how flexible the DWF activeX control is , but this is very easy to acheive with the toolkit directly, providing ya know c++

Cheers
Jason
Message 5 of 5
Anonymous
in reply to: Anonymous

Jason:

Thanks for the reply!

There are a number of activeX controls that come with the DWF viewer, including thumbnail viewers. I have been able to get only the "regular" viewer to work consistently. I think I am going to just use it and have IT install the DWF viewer on our plant’s “iceboxes” so the application will be available in the production areas.

No, I don’t know C++ and kind of stumble with VBA. 😞 This is just a side task at my job. Mostly I do drawings and PLC programming.

Regards,

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

Post to forums  

”Boost

 

”Tips

 

”Services