|
-
Apr 3rd, 2007, 02:46 PM
#1
Thread Starter
Member
help please!!!
hello people
i am using an adodc controller to link my access database to my visual basic project.
i need to make a few datareports to show a few details from my access database.
can u please tell me the maximum width that i can display on the page
and also i need a code to print my datareport with the click of a button
thanks for ur help
i am using vb 6
-
Apr 3rd, 2007, 03:41 PM
#2
Re: help please!!!
1) Use ADO code to link to your database. Bound controls should never have been created - they cause more problems than they solve.
2) Depending on the complexity of the report, it may be better to use Printer.Print statements to print what you want. (You can use Printer.CurrentX and Printer.CurrentY to position the print head.) There are numerous examples of using the Printer object in VB on the forum.
You can always do more, and control what your program does better by using code than you can by using 'things'.
And, in the future, try to make your topic a little more descriptive. If you're posting to the Classic Visual Basic forum, everyone assumes it's because you need help, so that doesn't narrow it down much. "Help printing from a database" would have been better.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Apr 3rd, 2007, 03:43 PM
#3
Thread Starter
Member
Re: help please!!!
thanks for ur help
and i will be more descriptive next time
i cant help it i am 16 and i dont know much of vb so i cant be very descriptive
-
Apr 4th, 2007, 06:42 AM
#4
Re: help please!!!
Moved to Reporting section
-
Apr 4th, 2007, 09:55 AM
#5
Re: help please!!!
can u please tell me the maximum width that i can display on the page
It depends on the Printer and the current paper size.
8.5 x 11 is roughly 15000, 12000 twips.
To print call the PrintReport method of the DataReport object in the button click event.
Last edited by brucevde; Apr 4th, 2007 at 10:02 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|