Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6333001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:22:43+00:00 2026-05-24T18:22:43+00:00

I have a BEAST of a program written in VB6. It uses ActiveReports to

  • 0

I have a BEAST of a program written in VB6. It uses ActiveReports to generate letters.

The reports are processed in a loop; with verbage-building loops and (a whole lotta) nested ‘if’ and ‘case’ statements. Fugly!

The reports are sent to the printer like such:

Function PrintIt(ltrobj as Object)

    Set ltrobj = MyARdocument '(.Dsr file)
    ltrobj.txtfield1 = strVerbage           'This string was populated somewhere else
    ltrobj.Printer.DisplayProgressDialog = False
    ltrobj.PrintReport False

End Function

Now here’s the weird part: The pages physically come out of the printer rotated 90 degrees each iteration of the loop. What’s even weirder — this only happens for my VB6 application — other Word documents, reports, batch jobs, whatever come out normal.

So the first page comes out like normal, the header first (pointing North). The second page comes out sideways (header pointing West). The third comes out of the printer like the first, the fourth comes out like the second, and on and on…

The printer: A Ricoh Aficio MP5000

I cannot find a setting on the printer, or a property in ActiveReports that controls this.

Any ideas, help, or a general direction would be greatly appreciated!

Thanks,

Jason

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:22:43+00:00Added an answer on May 24, 2026 at 6:22 pm

    There is no “rotation” setting in ActiveReports. The closest things that might impact this would be the page size and orientation, but at worst I would expect them to flip back and forth not actually rotate the page. I would try to do a few things:

    1. Trace the printer & page settings related to orientation and page size as report prints.
    2. Try printing to another printer to see if it happens on all printers or just this one.
    3. Preview the reports on screen and see if they’re rotated in the preview or not (or export them to PDF with report.Export(…) ad see if they’re rotated there).

    To trace page settings you should do it in a couple places. One on the printer, and another on each page (or Canvas) in the report. There is also the ActiveReport.PrintWidth (the width of the report, not the pages) that may also be relevant. So just before printing each report try tracing out the following values:

    report.PrintWidth
    ' the default settings for the report
    report.PageSettings.TopMargin
    report.PageSettings.RightMargin
    report.PageSettings.BottomMargin
    report.PageSettings.LeftMargin
    ' actual printer's current settings:
    report.Printer.PaperSize
    report.Printer.PaperHeight
    report.Printer.PaperWidth
    report.Printer.Orientation
    ' settings for a specific page:
    for each page in report.Pages:
      report.Pages(...).Width
      report.Pages(...).Height
      report.Pages(...).Orientation
    

    BTW: ActiveReports COM Help is here.

    If the preview/PDF test seems okay then I’d focus on the printer itself. Same for the print to another printer obviously. Otherwise, focus on ActiveReports settings.

    Hope this helps

    Scott Willeke
    GrapeCity
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program written in VB.NET which stops a service that uses file
I have written a program which analyzes a project's source code and reports various
I have a program written in C that has to input and output JSON
I have a program written in c that gets invoked like: my_program arg1 arg2
Exposition: I'm familiar with C/C++/Scheme & OpenGL. I have this client/server program written in
I have written a simple server - client program with Swing interface using singleton
an application I have written uses several third party jars. Sometimes only a small
I have a COM dll written in vb6. When I try to create a
I have written a program in C to parse large XML files and then
I have written a program in C# using Visual Studio 2010. At current it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.