Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Adding an Autocad drawing to report

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
Stampman
New Member


Joined: 08 Nov 2007
Posts: 2
Location: New Troy, MI

PostPosted: Fri Nov 09, 2007 2:35 pm    Post subject: Adding an Autocad drawing to report Reply with quote

I have database setup to keep track of my tools, per job, I would like to add an AutoCad drawing to my report, I tried the hyperlink, but it just print the path of the file. Any help would be greatly appreciated.
_________________
Ed Davis
Back to top
View user's profile Send private message
mistux
Site Admin


Joined: 25 Jun 2004
Posts: 1042
Location: South Bend, Indiana USA

PostPosted: Fri Nov 09, 2007 3:19 pm    Post subject: Reply with quote

You can make the the field an OLE filed and then when you click on the filed it should open a dialog box then you can select your file. It will either display a thumbnail or the actual drawing.

I have done a similar thing for other customers so they can see a preview of their drawings.

Be aware, that doing it this way makes the database very large very quickly.
Back to top
View user's profile Send private message Send e-mail
Stampman
New Member


Joined: 08 Nov 2007
Posts: 2
Location: New Troy, MI

PostPosted: Wed Nov 14, 2007 7:50 pm    Post subject: Next trick Reply with quote

I have got the drawing to open in a form, using Autodesk DWG TrueView, and using a macro:

AcCtrl8.PutSourcePath "C:\Documents and Settings\My Documents\Production\Tool2.dwg"

now is it possible to use cell data from a Access table to set the path, (in red), so as I move thru the records the drawing will change as well.

Thanks in advance. Very Happy
_________________
Ed Davis
Back to top
View user's profile Send private message
mistux
Site Admin


Joined: 25 Jun 2004
Posts: 1042
Location: South Bend, Indiana USA

PostPosted: Thu Nov 15, 2007 11:15 am    Post subject: Re: Next trick Reply with quote

Stampman wrote:
now is it possible to use cell data from a Access table to set the path, (in red), so as I move thru the records the drawing will change as well.


You can have that path in a field of a record in a table, then reference that field in code. I don't know if you can do it in a macro however, I have not used macros since version 1 of Access. Wink

Since the drawing isn't "in" Access then it will not know what to do with it, as far as displaying it, so if you are using a 3rd party control/software to show the file, then you will have to see if you can use that within Access to show it, if so, then you shold be able to pass the path name (the field data) to the control.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group