×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

DataReport Tool in VB60 and Paper-orientation.

DataReport Tool in VB60 and Paper-orientation.

DataReport Tool in VB60 and Paper-orientation.

(OP)
Hello!

How do I change the paper-orientation for the Data-report I have made in VB60? I have tried with this code in the "initalize" event of the report and also tried to add it on the "main sub" procedure of the project but it did not work:

Dim prn as object
set prn=Printer
prn.orientation=vbPRORlandscape

Looking forward to hear any answer.

Morten

RE: DataReport Tool in VB60 and Paper-orientation.

Did you check Microsoft site?  I believe, they have a bulleting out about the problem.  Service Pack 4 is supposed to fix rectify that issue.  
I have experienced the same problem, and I found the info on the Internet (user group).  I have not installed SP4 yet; therefore, I could not say if that fixes, for sure.

RE: DataReport Tool in VB60 and Paper-orientation.

iwant to create reports between two dates.when i run my reports i don't get the answer on the screen.the datareport is not refreshedeventhough the table contents are correct.what is the soln?

RE: DataReport Tool in VB60 and Paper-orientation.

prema,
   The solution to your problem is to just to refresh the command object of your dataenvironment. try this codes

dataenvironment1.command1.refresh

RE: DataReport Tool in VB60 and Paper-orientation.

prema,
   The solution to your problem is just to refresh the command object of your dataenvironment. try this codes

dataenvironment1.command1.refresh

RE: DataReport Tool in VB60 and Paper-orientation.

I need put a report for my catalog's, but how can directionatethe databese without the 'environtment1' (Only code in forms)

Looking for an answer.

RE: DataReport Tool in VB60 and Paper-orientation.

How can print in datareport different graphs, because it didnt change it kept the first image . We create differents graphs and we need print its using datareport but we didnt know how to do it

RE: DataReport Tool in VB60 and Paper-orientation.

Write this code in the initialize event:
ReportName.Orientation = rptOrientLandscape

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close