473,395 Members | 1,629 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,395 software developers and data experts.

Help with OLE object addition and size in a report

I want to ask two question
{Admin edit - This is not acceptable}
when we are adding an OLE Object in a form:
1. can we directly by pressing the button add a word document not giving a choice dialog box
Nov 5 '19 #1
4 2009
ADezii
8,834 Expert 8TB
1. can we directly by pressing the button add a word document not giving a choice dialog box
Yes you can. As an example, to directly Embed the Word Document Test.docx into a Bound OLE Object Field on the Current Form, where Test.docx is in the same Folder as your DB:
Expand|Select|Wrap|Line Numbers
  1. With Me![txtOLE]
  2.   .Class = "Word.Document"
  3.   .OLETypeAllowed = acOLEEmbedded
  4.   .SourceDoc = CurrentProject.Path & "\Test.docx"
  5.   .Action = acOLECreateEmbed
  6. End With
P.S. - If I'm not mistaken, Access does not control the Printing of Embedded Objects, the Server Application that created them does. If you are interested in simply Printing the Embedded Objects, then there is a work-a-round. You can store them as Binary Objects in an OLE Object Field, extract them on demand to a Temporary Folder, then Print them using the ShellExecute() API Function. Obviously, this is more complex approach that would require changing any existing Code.
Nov 5 '19 #2
This code works if the ole object is just 1 and fixed
but in my case I have an ole object for every record in the database which may be 200 per year
Nov 5 '19 #3
ADezii
8,834 Expert 8TB
Are you saying that you have to dynamically add 200 OLE Objects to 200 Records of your Database? If this is the case, then you can probably expect your DB to get rather large, rather quickly.
Nov 5 '19 #4
NeoPa
32,556 Expert Mod 16PB
I'm too late for this one so I need to remind all experts that posting multiple questions in a single thread is, for what I consider very obvious reasons, unacceptable.

I will remove the latter two questions and suggest that Karem should post them in separate threads individually should they be interested in getting help for them.
Nov 5 '19 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jéjé | last post by:
Hi everyone. I'm currently implementing a Cache system. Limiting its capacity with the number of object makes no sense, since objects can have any size they want. So I'd like to limit its...
7
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at...
1
by: prabhukalyan | last post by:
Hi all, I am not so good in queries. here is my problem 2 tables to store the received items (fabric)-- inwardmaster, inwarddetails and after some processing (Dyeing) the items were...
0
by: RJN | last post by:
Hi, I'm new to crystal report and require a help urgently. My requirement is something like this. I have a main report from where I call 2 subreports, say summary and details. The main...
0
by: zoneal | last post by:
Hello I need your help regarding crystal report. I am using interop control of Crystal Active X Report Viewer Control in vb.net application. When i run the apllication the report viewer shows the...
3
by: ducky | last post by:
I need help with opening a report when a button is clicked, but I only want to open the report with the Object I have chosen in the combo box. This is what i have so far: 'If 2 is selected open...
0
by: PerumalSamy | last post by:
Hi, i created crystal report in my web application using vb codings as follows dim con as new oledbconnnection....... dim cmd as new oledbcommand("select * from........ dim ds as new dataset...
5
by: jayapal | last post by:
Hi all, We have large code on which we are solving the bugs. For every bug we change the code part either add or delete some of the code part. More is adding the code part and very less is...
4
by: RG52 | last post by:
Hello All I need some help: I have a small DB in access that has data entered via text boxes on a form. It is for confirming orders and such. There are five sets of entry boxes simply listed as...
0
TheSmileyCoder
by: TheSmileyCoder | last post by:
Does anyone know how to create a chart object in an unbound object frame in a report? I can easily use the CreateReportControl to create a unbound object frame, but I just can't seem to figure out...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.