Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataReport Tool in VB60 and Paper-orientation.

Status
Not open for further replies.

Morten

Programmer
Sep 5, 1999
1
NO
Hello!<br>
<br>
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:<br>
<br>
Dim prn as object<br>
set prn=Printer<br>
prn.orientation=vbPRORlandscape<br>
<br>
Looking forward to hear any answer.<br>
<br>
Morten
 
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.
 
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?
 
prema,
The solution to your problem is to just to refresh the command object of your dataenvironment. try this codes

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

dataenvironment1.command1.refresh
 
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.
 
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
 
Write this code in the initialize event:
ReportName.Orientation = rptOrientLandscape
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top