473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

OLELink Autocad to report

I have a table listing Part numbers and a full path to the Autocad drawing.
I need a report that will print the drawing, Zoomed to a fixed sized window
on the report. Has anyone done OLE with AutoCad and can point me in the
right direction.

I am using Access97 and Autocad 2000.
So far I have tried an unbound object frame and the following in the
onformat event.

Me![OLEDrawing].Class = "AutoCAD.Drawing" ' Set class name.
Me![OLEDrawing].OLETypeAllowed = acOLELinked ' Specify type of object.
Me![OLEDrawing].SourceDoc = Me![Path] ' Specify source file.
'Me![OLEDrawing].SourceItem = "Model" ' Specify data to create link
to.

Me![OLEDrawing].Action = acOLECreateLink ' Create linked object.
'!! I get a error message on the above line.

Me![OLEDrawing].SizeMode = acOLESizeZoom ' Adjust control size.
Nov 12 '05 #1
0 1873

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruce | last post by:
Hi: I was interested in installing AutoCAD 2005 on my computer with Win XP Pro. I went to the AutoCAD website, and it said something like "Windows XP Pro, and Service pak 2 are compatible with...
0
by: Kathy | last post by:
Hi and Thanks for you help! Several years ago I created a Product Specification db that displayed AutoCad 2000 drawings in a report (The Spec Sheet) Recently we upgraded our AutoCad to the 2004...
3
by: perspolis | last post by:
I want to open Autocad files from my application and edit them there like Insert object in word
2
by: john m | last post by:
Hello, I downloaded the beta vb8 express thing and since installing it none of my AUTOCAD vba routines work anymore. I tried the AcadVBA newsgroup but no one else seems to have had this. My...
1
by: john m | last post by:
i want to write a vb dotnet program to see if autocad is running and if not start it then just start to manipulate the application what is the correct method to do this? can anyone point...
4
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following...
3
by: Aman | last post by:
hi, im trying to draw some rectangles,lines in autocad using c, is their any function that can be used, plz help, also is it possible to read values from a ms excel file in c
1
by: Zaher Rabah | last post by:
Hi I work on a program for Real Estate. All the maps pictures are found at AutoCad Software. I want to open AutoCad from Access . Or if we can open specific file name in AutoCad. Regards
3
by: shaiful | last post by:
Hi all, I have a problem with opening and closing AutoCAD in VB6 properly. I opened AutoCAD in VB by Dim AcadApp As Object, acadDoc As Object and close it by Set acadDoc = Nothing Set AcadApp...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.