473,785 Members | 2,794 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move object on report during print process

Hi all, I'm going crazy...

I've report with subreport.
I want simply move some objects on report and subreport according to
fields value. For example I want hide a label when a field is empty.

In *preview* I can hide or move objects on reports's event with VBA. I
can correctly know page number, fields value and I can hide or move
object. All perfect.

The same code, the same events doesn't work when I create PDF file or
when I direct print to printer...

Evidently there are much difference between event generation into print
preview and event generation into "real" print.

Any suggestion???

Thank's
--
Max
www.suonaresuonare.it
Jul 26 '06 #1
5 2508
On Wed, 26 Jul 2006 09:57:21 +0200, Max ©® wrote:
Hi all, I'm going crazy...

I've report with subreport.
I want simply move some objects on report and subreport according to
fields value. For example I want hide a label when a field is empty.

In *preview* I can hide or move objects on reports's event with VBA. I
can correctly know page number, fields value and I can hide or move
object. All perfect.

The same code, the same events doesn't work when I create PDF file or
when I direct print to printer...

Evidently there are much difference between event generation into print
preview and event generation into "real" print.

Any suggestion???

Thank's
No suggestions without actually 'seeing' your code and the event into
which you placed it.

Let us know the event, code and what you are trying to accomplish with
that code, (unless it is absolutely clear from the code, i.e. hiding a
label is not the same as moving it).

It should make no difference whether you print or preview your report
UNLESS you place your code in the report's Activate event. That only
fires when the report is previewed. As far as PDF files are concerned,
I have no experience with those so I can't comment on that part.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 26 '06 #2
"doesn't work" ????

(david)

"Max ©®" <me@maxetere.it wrote in message
news:ea******** **@area.cu.mi.i t...
Hi all, I'm going crazy...

I've report with subreport.
I want simply move some objects on report and subreport according to
fields value. For example I want hide a label when a field is empty.

In *preview* I can hide or move objects on reports's event with VBA. I can
correctly know page number, fields value and I can hide or move object.
All perfect.

The same code, the same events doesn't work when I create PDF file or when
I direct print to printer...

Evidently there are much difference between event generation into print
preview and event generation into "real" print.

Any suggestion???

Thank's
--
Max
www.suonaresuonare.it

Jul 27 '06 #3
"david epsom dot com dot au" wrote
"doesn't work" ????
Careful, David... you may lose your credentials as an "Access Psychic" if
you ask for details. <GRIN>

Jul 27 '06 #4
It's a conflict between Office2003 and Office 2007 beta2!!! :(((
This two office version aren't compatible. I think that some damned
beta's library create a problem to report's engine.
Late yesterday I have unistalled office 2007 and all works fine!

Thank you

--
Max
www.suonaresuonare.it
Jul 27 '06 #5
"Max ©®" wrote
It's a conflict between Office2003
and Office 2007 beta2!!! :(((
There's no way that I would load Office 2007 Beta 2 on the same machine with
the copy of Office 2003 that I am using for development / production.

Larry Linson
Microsoft Access MVP
Jul 27 '06 #6

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

Similar topics

1
4415
by: CPNZ | last post by:
I have a database i am m oving to another server, during the process I am moving the data and log files to another drive.(Which I have done countless times before with no problems) The problem I am having is after I restore the database using the following statement : RESTORE DATABASE CMAMSPROD FROM DISK = ’C:\Databasename.BAK’ WITH STANDBY = ’D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\Databasename\databasename.STANDBY’ ,MOVE...
5
4547
by: Bob | last post by:
Hi, I am using Access 2000 to print out an address book. I have designed the report based on a database whose first record is not blank. In the design there is a one line report header, a onle line page header, three lines of detail (name address etc)and a footer. On previewing or printing the report it inserts a blank three line detail section before the first record. Every other page is fine except this first page. Not a big deal but it...
3
2885
by: Veetold | last post by:
I have a problem with displaying image files (jpg) on my report. I got a solution from Larry Linson (Microsoft Access MVP) for which I'm grateful, but I still don't exactly know how to link an image control with the specific file - all information: path name, file name and file extention are included in one field of each record in the report source table (data of this shape: \\server_name\folder_name\file_name.jpg). Any help appreciated....
1
2703
by: Veetold | last post by:
The solution you suggested works very good - thanks again. I encountered a new problem related to this topic. According to your advise I put the following line to print and format event: Me.BookCover.Picture = IIf(Me.IsCover= true, Me.BookCoverPath, "") to avoid problems when the file specified in field does not exist I add a logical field to source table: indicating physical presence of the file. Surprisingly when there is no file ...
1
8143
by: Alec | last post by:
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?
10
3092
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
1
2233
by: urange | last post by:
Hi to all, I am setting up a database which has to store a great number of images. I will therefore store the images not as OLE but as a text link to the file (maybe I'll try the BLOB-solution). While it is no problem to show the image in a form with the .picture property, I am trying to find a way to show the image on a report. So far, I can only do this by the following code sequence: stDocName = "Test_Report"
1
2520
by: Scott | last post by:
Hello- I have a contol button on a form that I want to code to open a report (rptReviews), then display the print dialogue box so that users can select a printer. This report needs color, but most of my team has their default printer set to our departments monochrome printer. Thus i wanted to give them the option to run it to our color printer during the print process. Alternately, is there a way to code a button to drive a report to
11
7338
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code is run again? This is causing certain error problems. 1 Why does the code run for a print preview when the report already exists? 2 What command do I use in code to find out if a report (or any other object for that matter) is already...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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
10329
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
10092
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
9950
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
8974
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...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3650
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.