Results 1 to 5 of 5

Thread: help please!!!

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    41

    Cool 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

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    41

    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

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: help please!!!

    Moved to Reporting section

  5. #5
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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
  •  



Click Here to Expand Forum to Full Width