473,396 Members | 2,013 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.

embed/link OLEObject(pdf,doc,xls) in report

I need to crate a report containing all documents belonging to the
links I have stored in a table.

First I created a form that works fine, but within the report I can't
set the enabled property that is necessary for embedding it(error
message: 'expression has invalid reference to property enabled').

Here's the code:

Function setImagePath()
Dim strImagePath As String
strImagePath = Me.txtImageName
Me.Imageframe.Enabled = True
Me.Imageframe.Locked = False
' Specify type of object.
Me.Imageframe.Class = "AcroExch.Document.7"
' Specify source file.
Me.Imageframe.SourceDoc = strImagePath
Me.Imageframe.OLETypeAllowed = acOLEEmbedded
' Embed object
Me.Imageframe.Action = acOLECreateEmbed
' Adjust control size.
Me.Imageframe.SizeMode = acOLESizeZoom
End Function

How is it possible to avoid this problem?

Jun 12 '06 #1
0 1556

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

Similar topics

0
by: Aditya | last post by:
Does any one know how would you link PDF form fields with SQL database using ASP perl? I want to extract the data from the PDF form and insert it into the database and vice versa. I read a lot...
4
by: Jules Winfield | last post by:
Good Day, Gentlemen: I've been tasked with creating a screen that allows users to double-click items from list of filenames. Each filename in the list corresponds to a PDF file. On double-click,...
7
by: webgreginsf | last post by:
Hello, I tried the following post a few weeks ago and never received any replies, so I figured I'd try again. I'm seeking suggestions for an interesting problem I have. I'm building a web...
1
by: snicks | last post by:
I have a series of XLS files which I need to embed into a PowerPoint presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an ASPOSE.PowerPoint control to do this and it does...
15
by: Roedy Green | last post by:
I seem to recall reading about a feature so that you could apply different styles to different kinds of link. e.g. local and offsite or to automatically put a logo beside some domain links. I...
2
polymorphic
by: polymorphic | last post by:
I am no longer good at Javascript and need help. I'm trying to embed pdf files in html then build some sort of navigation between the pdfs via the pdf numbered file name. I can generate the...
3
by: sconard | last post by:
I am looking for a PDF viewer object to embed in a form. I currently have the Autocad dwf viewer object embeded in a form. When I switch to design view Access often crashes. After the crash I can...
14
by: phoenie | last post by:
Coding in vb, framework .net 2.0, vs2005 When an user want to click on to view the report which is in the .pdf format, I will be able to display the file and embed it in the browser. What...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.