dbTalk Databases Forums  

report footer height set to 22" in access2007

comp.databases.ms-access comp.databases.ms-access


Discuss report footer height set to 22" in access2007 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default report footer height set to 22" in access2007 - 08-23-2010 , 05:29 PM






converted an mdb from access97 to 2007
some reports converted ok
others, the report footer section height is set to 22" and it can't be
changed
tried compact / repair & decompile, no change
deleted and reimported the report from access97, same problem
if I create a new report and copy / paste all the controls from the
old report, everything is fine
would could cause this ? is there a fix

Reply With Quote
  #2  
Old   
Roger
 
Posts: n/a

Default Re: report footer height set to 22" in access2007 - 08-23-2010 , 06:44 PM






On Aug 23, 4:29*pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
Quote:
converted an mdb from access97 to 2007
some reports converted ok
others, the report footer section height is set to 22" and it can't be
changed
tried compact / repair & decompile, no change
deleted and reimported the report from access97, same problem
if I create a new report and copy / paste all the controls from the
old report, everything is fine
would could cause this ? *is there a fix
I tried saveAsText in access97 and loadFromText in access2007, same
problem
the height should only be .25", but when I enter that in the
properties, it resets automatically to 22"

Reply With Quote
  #3  
Old   
Salad
 
Posts: n/a

Default Re: report footer height set to 22" in access2007 - 08-23-2010 , 08:08 PM



Roger wrote:

Quote:
On Aug 23, 4:29 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:

converted an mdb from access97 to 2007
some reports converted ok
others, the report footer section height is set to 22" and it can't be
changed
tried compact / repair & decompile, no change
deleted and reimported the report from access97, same problem
if I create a new report and copy / paste all the controls from the
old report, everything is fine
would could cause this ? is there a fix


I tried saveAsText in access97 and loadFromText in access2007, same
problem
the height should only be .25", but when I enter that in the
properties, it resets automatically to 22"
This is a routine that will set the footer height to 1 inch (1440 twips
to an inch). Seems you've done what you can so it's very possible the
code will fail. Have you checked the margins of the report? Maybe
that's off. Since I put in a message box you could maybe try it for all
reports with a docname < "D" if you have some reports that fail that
start with A...C. Then rerun and see if any got set right.

Public Sub SetReportFooterHeight()

Dim dbs As Database
Dim doc As Document
Dim r As Report

Set dbs = CurrentDb

With dbs.Containers!Reports
For Each doc In .Documents
DoCmd.OpenReport doc.Name, acDesign
Set r = Reports(doc.Name)

'display to user the current height
MsgBox doc.name & " footer height is " & _
r.Section(acFooter).Height

'set the height to 1 inch
r.Section(acFooter).Height = 1440

Set r = Nothing
DoCmd.Close acReport, doc.Name, acSaveYes
Next doc
End With

MsgBox "Done"
End Sub

Reply With Quote
  #4  
Old   
Roger
 
Posts: n/a

Default Re: report footer height set to 22" in access2007 - 08-23-2010 , 09:39 PM



On Aug 23, 5:44*pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
Quote:
On Aug 23, 4:29*pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:

converted an mdb from access97 to 2007
some reports converted ok
others, the report footer section height is set to 22" and it can't be
changed
tried compact / repair & decompile, no change
deleted and reimported the report from access97, same problem
if I create a new report and copy / paste all the controls from the
old report, everything is fine
would could cause this ? *is there a fix

I tried saveAsText in access97 and loadFromText in access2007, same
problem
the height should only be .25", but when I enter that in the
properties, it resets automatically to 22"
closer examination of the text file, showed a top value of -30 for a
line within the section
in access97 it would be a 'divider' line right at the top of the
section
Begin Line
BorderWidth = 1
Left = 2318
Top = -30
Width = 7043
Name ="Line89"
End

changing it to Top = 30, allowed me to loadFromText and for the
section height to be set as required

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.