Volker Joseph

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

AutoCAD Exchange

DWF Links

« Autodesk Impression + DWF = Winning More Contracts | Main | Yet another partner application supports 3D DWF »

February 09, 2007

Load Dummy File to Release Current DWF File from viewer

Vb

A Mr. Richard Feder from Fort Lee, New Jersey asks:

I've got a Visual Basic application that displays DWF files using the viewer API. Is there any way to close a file from the viewer, so I can delete it. The viewer appears to always leave the last file viewed open? I have had no luck trying to get rid of the file reference - is there a way to do this? What is the DWF Viewer trying to do - make me sick?

Like a mom sending her only son off to college, the DWF viewer just won't let go. :-)

Project Freewheel developer, John Schmier provided the answer:

Setting the source to nothing, (null), or " " won't release the prior file. The viewer still keeps its lock on the file as long as it's visible. What you will need to do is load a dummy dwf file and then the other file will be released. Attached is the smallest DWF I could create. It's 26 bytes and has no information to show when loaded. Load this in your application to delete the prior DWF being viewed.

Download small.dwf

Thanks John.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c3ba053ef00d8353aa22f53ef

Listed below are links to weblogs that reference Load Dummy File to Release Current DWF File from viewer:

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

RSS Feed

Search