473,407 Members | 2,326 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,407 software developers and data experts.

Stephen Lebans Snapshot to PDF solution

Hi

I've copied Stephens code into my db, and can get it to work, but only
on "plain Jane" reports with no images.

Most of my reports has an unbound image obluect in them that I set to
an external image file using on_open code

I've searched through this group and there are a few comments about
snapshots not working with embedded images, and my testing seems to
prove this to be correct.

It there any way to get Stephens solution to create a pdf from a
report that has an image object in it???

Thanks in advance

Grant

Jun 7 '07 #1
8 5444
Have you turned off the Loading Image dialog?

If you do not stop the "Loading Image" Dialog via the Registry modification
you will run into two issues:

1) Access can crash if you scroll through the reocrds too fast.
2) When printing a Report, Access may run out of resources and be
unable to complete printing the report.
Additionally, two issues in regards to the Registry modification
pointed to
here http://www.mvps.org/access/api/api0038.htm
1) The Registry key MUST be "No" NOT "no" or "NO"
2) On systems with XP or on systems with more than one user account,
you must add/modify the key in both HKEY_CURRENT_USER and
HKEY_LOCAL_MACHINE.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<gr***@technologyworks.co.nzwrote in message
news:11**********************@r19g2000prf.googlegr oups.com...
Hi

I've copied Stephens code into my db, and can get it to work, but only
on "plain Jane" reports with no images.

Most of my reports has an unbound image obluect in them that I set to
an external image file using on_open code

I've searched through this group and there are a few comments about
snapshots not working with embedded images, and my testing seems to
prove this to be correct.

It there any way to get Stephens solution to create a pdf from a
report that has an image object in it???

Thanks in advance

Grant

Jun 8 '07 #2
Nope, that didnt work

The error message i'm getting is MSAccess2455 You entered that has an
invalid reference to the property form/report

Its getting to this line in your code

DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _
strPathandFileName

If I remove the img object form the report its works ok.

Cheers

Grant


On Jun 8, 12:47 pm, "Stephen Lebans" <ForEmailGotoMy.WebSite.-
WWWdotlebansdot...@linvalid.comwrote:
Have you turned off the Loading Image dialog?

If you do not stop the "Loading Image" Dialog via the Registry modification
you will run into two issues:

1) Access can crash if you scroll through the reocrds too fast.

2) When printing a Report, Access may run out of resources and be
unable to complete printing the report.

Additionally, two issues in regards to the Registry modification
pointed to
herehttp://www.mvps.org/access/api/api0038.htm

1) The Registry key MUST be "No" NOT "no" or "NO"

2) On systems with XP or on systems with more than one user account,
you must add/modify the key in both HKEY_CURRENT_USER and
HKEY_LOCAL_MACHINE.

--

HTH
Stephen Lebanshttp://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

<g...@technologyworks.co.nzwrote in message

news:11**********************@r19g2000prf.googlegr oups.com...
Hi
I've copied Stephens code into my db, and can get it to work, but only
on "plain Jane" reports with no images.
Most of my reports has an unbound image obluect in them that I set to
an external image file using on_open code
I've searched through this group and there are a few comments about
snapshots not working with embedded images, and my testing seems to
prove this to be correct.
It there any way to get Stephens solution to create a pdf from a
report that has an image object in it???
Thanks in advance
Grant- Hide quoted text -

- Show quoted text -

Jun 11 '07 #3
Forget about my code for a moment. Can you manually export your Report to
Snapshot format?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<gr***@technologyworks.co.nzwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
Nope, that didnt work

The error message i'm getting is MSAccess2455 You entered that has an
invalid reference to the property form/report

Its getting to this line in your code

DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _
strPathandFileName

If I remove the img object form the report its works ok.

Cheers

Grant


On Jun 8, 12:47 pm, "Stephen Lebans" <ForEmailGotoMy.WebSite.-
WWWdotlebansdot...@linvalid.comwrote:
>Have you turned off the Loading Image dialog?

If you do not stop the "Loading Image" Dialog via the Registry
modification
you will run into two issues:

1) Access can crash if you scroll through the reocrds too fast.

2) When printing a Report, Access may run out of resources and be
unable to complete printing the report.

Additionally, two issues in regards to the Registry modification
pointed to
herehttp://www.mvps.org/access/api/api0038.htm

1) The Registry key MUST be "No" NOT "no" or "NO"

2) On systems with XP or on systems with more than one user
account,
you must add/modify the key in both HKEY_CURRENT_USER and
HKEY_LOCAL_MACHINE.

--

HTH
Stephen Lebanshttp://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

<g...@technologyworks.co.nzwrote in message

news:11**********************@r19g2000prf.googleg roups.com...
Hi
I've copied Stephens code into my db, and can get it to work, but only
on "plain Jane" reports with no images.
Most of my reports has an unbound image obluect in them that I set to
an external image file using on_open code
I've searched through this group and there are a few comments about
snapshots not working with embedded images, and my testing seems to
prove this to be correct.
It there any way to get Stephens solution to create a pdf from a
report that has an image object in it???
Thanks in advance
Grant- Hide quoted text -

- Show quoted text -


Jun 11 '07 #4
I've just tried and I can create a snapshot from a simple report with
no image controls, but as soon as the report has an image control in
it it bombs out.

I'm using Access97 SR2

ok i've just convered my app to Access XP and your code now works, so
its something to do with my installation of Access97 and the snapshot
export.

The snapshot export capability is standard with the access
installation, but can I download it separately to try re installing
it?

Cheers

Grant

Jun 12 '07 #5
Are you using an Image control or a Bound/Unbound OLE Frame control?
Are you loading the Image control at runtime or embedding the image(s) at
design time?

When I asked you earlier if you had turned off the Loading Image dialog what
was your response?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<gr***@technologyworks.co.nzwrote in message
news:11*********************@i13g2000prf.googlegro ups.com...
I've just tried and I can create a snapshot from a simple report with
no image controls, but as soon as the report has an image control in
it it bombs out.

I'm using Access97 SR2

ok i've just convered my app to Access XP and your code now works, so
its something to do with my installation of Access97 and the snapshot
export.

The snapshot export capability is standard with the access
installation, but can I download it separately to try re installing
it?

Cheers

Grant

Jun 12 '07 #6
A quick search on GoogleGroups yielded the following:

Here's a post of mine from a couple of months ag0.

>Forum: microsoft.public.access.reports
Thread: INFO: Export to SnapShot Image memory restrictions
Message 1 of 4

Save this thread

back to search results
Subject: INFO: Export to SnapShot Image memory restrictions
Date: 10/12/2000
Author: Stephen Lebans <StephenNoS...@lebans.com>
<< previous · next in search >>
RE: Export to SnapShot Format: Win98/A97 Win95/A97
In some very basic testing it would appear there is a memory restriction
of just under 1MB for the total amount of memory allowed for Images in a
Report to be exported to SnapShot format for each page. On the two A97
systems here at home the value is actually around 1011KB. This value is
the uncompressed bitmap(s) or DDB(s).
If you exceed this amount the Export process silently fails. If you come
close to this amount sometimes the SnapShot file is created but it will
appear to be missing sections of the Report. This value decreases as
other controls are added to the Report, and not just Image controls.
I have tried both Bitmap and Metafiles with exactly same results.
To easily test this create 2 Bitmap images with file sizes of 1000KB and
1024KB. Create a Blank Report with no recordsource and no Controls on
it. Set the 1000KB Image as the Background picture of the Report. Export
this to SnapShot format and then view the result with the SnapShot
viewer. Now try it with the 1024KB Bitmap and the Export should fail. In
fact if you keep the same filename as the original 1000KB Snapshot you
will now find the export not only failed but it deleted your first
SnapShot as well.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<gr***@technologyworks.co.nzwrote in message
news:11*********************@i13g2000prf.googlegro ups.com...
I've just tried and I can create a snapshot from a simple report with
no image controls, but as soon as the report has an image control in
it it bombs out.

I'm using Access97 SR2

ok i've just convered my app to Access XP and your code now works, so
its something to do with my installation of Access97 and the snapshot
export.

The snapshot export capability is standard with the access
installation, but can I download it separately to try re installing
it?

Cheers

Grant

Jun 12 '07 #7
ok your quite right, it is a memory issue, if Icut the image size down
it works. I though a jpg would have solved the problem, but makes no
diff, so assume the snapshot format must uncompress the jpg so uses up
just as much memory.

Now just have to figure out how to reduce my image size!@#

Thanks

Grant

Jun 19 '07 #8
The Snapshot file will contain an uncompressed DIB(bitmap) wrapped within an
Enhanced Metafile.
You really should upgrade the A97 system to at least A2K.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<gr***@technologyworks.co.nzwrote in message
news:11*********************@q19g2000prn.googlegro ups.com...
ok your quite right, it is a memory issue, if Icut the image size down
it works. I though a jpg would have solved the problem, but makes no
diff, so assume the snapshot format must uncompress the jpg so uses up
just as much memory.

Now just have to figure out how to reduce my image size!@#

Thanks

Grant

Jun 20 '07 #9

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

Similar topics

2
by: Wally | last post by:
Hi All, I'm using Stephan Lebans' nifty code for automatically resizing text fields to the size required to show (almost) all text in that field (CanGrow3, thanks Stephen!). In general this...
11
by: Patrick | last post by:
I am using Stephans code to change the background color of the Access container in Access 97, the code works fine when running in Access in the normal way. The problem occurs when running the...
1
by: Alex | last post by:
The JustiDirect text justification on Stephen LeBans site works well but I cannot get it to work on a sub report. Could anyone tell me if this is possible. Thanks. Alex
3
by: Alex Wisnoski | last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to preserve formatting) from an Access 97 application. I have made the reference to his mde and copied the modules into my db. I...
4
by: Karl Roes | last post by:
Hi Stephen, Very Cool. I can only get it working on the first row of a continuous form. Is this correct? Regards Karl
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
3
by: Rémi | last post by:
Hello all! I've been using Stephen Lebans' MouseWheel stuff for a number of years now, without problems. I've used on different combinations of Access and Windows, and have had great results with...
14
by: nospamhere | last post by:
Hello Stephen and all, This is such a cool group. I really need to spend more time here. A few months ago I noticed some brief discussion here about the fact that your excellent HTML Editor...
30
by: CD Tom | last post by:
I found Stephen Lebans modReportToPDF and have been trying to get it to work in my application. I've downloaded his database and when I run his test it works fine. I then added it to my application...
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...
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
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
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
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,...
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.