Move object on report during print process

  • Thread starter Thread starter =?ISO-8859-15?Q?Max_=A9=AE?=
  • Start date Start date
?

=?ISO-8859-15?Q?Max_=A9=AE?=

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,
Not sure I understand your setup, but basically...
If you want to hide a field on a report according to the value of another field, use
the report section OnFormat event.
(The section that those fields are located in)

Ex. the Detail section...
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Votes > 10 Then
SomeOtherField.Visible = False
Else
SomeOtherField.Visible = True
End If
End Sub
---
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
There are 10 types of people in the world.
Those who understand binary, and those who don't.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top