Print dwg file from Access

  • Thread starter Thread starter daniel
  • Start date Start date
D

daniel

Hi All,

Could anybody please let me know how to print .DWG which is saved in
AutoCAD from Access?

I have got an example of printing out .DWF and working all right. I
have generated a bpj file and use the code like:

Shell ("C:\Program Files\Autodesk\Autodesk Design Review
\DesignReview.exe" & " " & FileName)

I have check with our designer and he said he can only save drawing
as .DWG. He can publish, not saved as, to .DWF, but the scale not
correct when the drawing is printing to a special printer.

So I think I have to find a way to print .DWG rather than .DWF. I have
tried to change the detail in bpj file from dwf to dwg, the error log
say "C:\Temp\test.dwg" contains no DWF files.

Thanks in advance!

Cheers
Daniel
 
If there is a right click "print" option when you right click on the dwg
file, then the following should work:

CreateObject("Shell.Application").Namespace(0).ParseName("c:\myfile.dwg").InvokeVerb
("&Print")

The above assumes you have correct software installed, and ALSO that the
right click->print option is available and works...


the above works for Excel, word, pdf, and any software that supports right
clicking on the file and selecting print. (try the right click print option
on a dwg file to see if this works. If it right click print does not work,
then the above code will not help you).
 
Back
Top