473,796 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print OLE Object/Image Picture

Hi All,

I am currently using an unbound OLE object to display images stored in a
folder. I want to be able to print these images from their normal format
(it just happens that these are A4 scanned documents) so they would
simply come out as 1 sheet and good quality. I have a print button on my
form, and one image is displayed per record.

How can this be done using an Unbound OLE Object? Or will I have to use
an Image Frame?

TIA

Alec Christie
alec_e_christie (at)hotmail(dot )com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
1 8144
"Alec" wrote
... I want to be able to print these
images from their normal format
(. . . A4 scanned documents) so they
would simply come out as 1 sheet
and good quality How can this be done using an Unbound
OLE Object? Or will I have to use
an Image Frame?


I'd _guess_, by carefully designing a report with no Headers or Footers of
any kind, a Control (I always use Image, but the unbound OLE may work) sized
as big as you can size it, in the detail, and margins set as small as they
can be set, and passing it the path to the image in question.

The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zi p is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP


Nov 13 '05 #2

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

Similar topics

0
974
by: S Shulman | last post by:
Hi all Does anyone knows how to print an image without openning the file from VB.NET Thank you, Sam
0
1089
by: Buzz | last post by:
Please can anyone advise on how to use PHP to print an image for WAP. I can get print to work with .jpgs on a www. page or through a mobile phone browser (transitional doctype) : <h4>Picture of the day:</h4> <?php $image_path = "../images/mobile"; $images = array('image_sun.jpg','image_mon.jpg','image_tue.jpg','image_wed.jpg','image_thu.jpg','image_fri.jpg','image_sat.jpg');
1
1270
by: Drunkalot | last post by:
How can I print an image, i need to specify the position in the paper... s...
1
21676
by: S Shulman | last post by:
Hi I am looking for sample code to print an image file from VB code image can be .jpg, .bmp etc. Thank you in advance, Shmuel Shulman
3
8448
by: CG3000 | last post by:
I have an Image in a picture box in VS 2005 that I want to print using the following event handlers: Private Sub btnPrintLabels_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Try Me.PrntDoc_Img.PrinterSettings.PrinterName = "Canon MF3110" Me.PrntDoc_Img.DocumentName = "Vitex Label" AddHandler PrntDoc_Img.PrintPage, AddressOf Me.pd_PrintPage PrntDoc_Img.Print()
4
12853
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property, which becomes invalid when the user installs the database (ie: c:\devpath\ becomes c:\program files\mydbapp, but the .Picture property still points to c:\devpath\) The problem is that I don't *know* what installation path the user will select,...
1
1990
by: robert10 | last post by:
Hi, Can someone please help me with finding some code to print an image which is larger than the screen? I am trying to print a black background which is exactly A4 in height and width, yet even tho i pasted an image onto the form at that size, it gets cut off by the screen Because the screen isn't big enough. I do not necessarily need to see it on screen properly, but i require it to print a black image 210mm wide and 297mm height. ...
0
1384
by: khanbtech | last post by:
Hai friends, now iam working in C#.net windows application project,In this project we need to capture webcam image and print,i know how to print but its not look for clear, how to print webcam image with good clarity? plz give some sample code Thanks in Advance
0
1785
by: Zainull | last post by:
Hi, I'm very new to VB and I am using visual basic 2010 express. I have to write a program that is capable of simple image processing: The user must be able to type in the path and name of an image file or browse for the file (jpg and bmp). When a filename has been entered the image must appear in a Picture Box on the form. The colour of each pixel in the image should then be inspected and stored in one or more arrays. Once the array(s)...
0
9524
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10168
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.