Avatar of pandgcs
pandgcs asked on

Visual Basic 6 printing

Hi,

I am using the printer. command in VB6 to output data to a template.

I have a text box set as a multiline text box and I can input the name, address etc on separate lines but when it comes to printing I have set the printer.currentx and printer.currenty to the coordinates on the template, the first line printed is in the correct place but all other lines are pushed back to the edge of the page.

How can I format the text to be at the same column as to print to the template?

Any help would be appreciated

Thanks

Andy
Visual Basic ClassicProgramming

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
Martin Liss

Can you attach a zip file of your project or a demo project with the textbox and the code you are using to print it?
ASKER CERTIFIED SOLUTION
inthedark

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
inthedark

Hi pandgcs,  did you manage to solve your printing issue?

Do you need any explanation in the code example,  I can add more comments if required.
Martin Liss

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Your help has saved me hundreds of hours of internet surfing.
fblack61