Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2005, 07:04 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default Report Orientation Problem

I have several application written in Access 2003 that create reports dynamically to print out. They worked fine last week, but now when the report is previewed the page is shown as landscape, even though it still prints with a Portrait orientation. I am pulling what is left of my hair out trying to figure it out. Has anyone seen anything similar, or know what could cause this?

An extract of the creation code is...

Private Sub PrintLetter()
    Dim printReport As Report
    Dim ctrlLogo As Control
    ...

    Set printReport = CreateReport()
    printReport.Printer.TopMargin = 720
    printReport.Printer.BottomMargin = 1440
    printReport.Printer.LeftMargin = 1440
    printReport.Printer.RightMargin = 1440
    printReport.Printer.Orientation = acAPRORPortrait

    Set ctrlLogo = CreateReportControl(printReport.Name,
    acImage, , , , 3260, 0, 2840, 940)
    ...

Thanks in advance

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
Reply With Quote
  #2 (permalink)  
Old January 11th, 2005, 01:35 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Sorry to bother everyone. The problem was that despite setting the Orientation to Portrait, my default printer somehow got set to use landscape as the default orientation and this was overinding any VBA code that I had in place.

I am now bald and feeling kind of sheepish!

Mike
EchoVue.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report Changing Orientation garrysmith68 Beginning VB 6 0 June 6th, 2006 06:42 AM
Crystal Report Orientation = Landscape in asp agoz Classic ASP Professional 0 February 17th, 2006 04:15 AM
Object Orientation sreechand_b J2EE 0 June 3rd, 2005 03:56 AM
Table Orientation blaflin BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 November 11th, 2004 01:36 PM
Data Report: Orientation blackdevil1979 Beginning VB 6 1 September 9th, 2004 11:57 AM



All times are GMT -4. The time now is 04:08 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.