Results 1 to 6 of 6

Thread: Printing data to printer in VB 6

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    2

    Printing data to printer in VB 6

    Hi friends i am doing database project for finance and i stuck in one problem.
    I want to print like this in printer

    Name........................ date:...........
    address.................... time :.........
    ........................

    sub:some agreement statements xxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Amount:............
    rate of interest:............

    signature



    All this agreement statements are same for all persons and i want to save this
    in file and in doted lines(...........) i want to print the data in specific location
    how we can done this in vb .please help me

  2. #2

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Printing data to printer in VB 6

    And if you need to continue a line, or in other words two things on the same line then you use a semi-colon.

    Code:
    Printer. Print "This is part one";
    Printer.CurrentX = 3000
    Printer.Print "This prints on the same line with part one"

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Printing data to printer in VB 6

    Just A Suggestion: Do you have MS Office? If yes, then create a template in MS-Office and then interact with MS Word to do your printing...

    Advantages of doing this: You can use words inbuilt property of wordwrap, Justify, Print Preview etc... Your document will look pretty neat and proffesional... Not only that... you can also have a digital signature on your document
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    2

    Re: Printing data to printer in VB 6

    Thank you friends.

    How to create template in MS office and how to link to Vb.
    And also how to store each person record in file , Is it required to maintain each for each person or single file .

    NOTE:I am novice

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Printing data to printer in VB 6

    Quote Originally Posted by arjunpi
    Thank you friends.

    How to create template in MS office and how to link to Vb.
    And also how to store each person record in file , Is it required to maintain each for each person or single file .

    NOTE:I am novice
    A good place to start with
    http://www.vbforums.com/showthread.php?t=358585
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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