r/visualbasic • • Nov 12 '19

Any way to exclude title (Class1 - 1) when printing labels?

Post image
8 Upvotes

12 comments sorted by

1

u/-Nahkis- Nov 12 '19

1

u/chrwei Nov 12 '19

wait, are you really just typing text into a module file and doing file print? if that's really the goal, VB is the wrong tool, use a text editor.

1

u/-Nahkis- Nov 12 '19

Yes, thats exactly how im doing it, or well the company is doing. This was set up by a different person here in the workplace and he could not get the Class1 text out of the print.

1

u/chrwei Nov 13 '19

that process makes no sense at all. that's not a "setup", you're just printing the code, and no, you can't turn it off. just don't use VB's for this. use literally anything else. Word's label templates would be best.

or, you've completely misunderstood what you're supposed to be doing.

1

u/-Nahkis- Nov 13 '19

This process was brought in by another person. Not me...

We print labels and put them on items we produce and this is how it was set up by the factory "developer" person working in the company. I just wanted to look into this by my own (to look into better options)

Sadly there is no Microsoft Word installed on that computer.

2

u/chrwei Nov 13 '19

ok, this isn't a developer solution, there's no code involved, you're not using VB. this is misusing the VB IDE as a plain text editor.

just use a different editor.

1

u/-Nahkis- Nov 13 '19

Alright. Thank you for help!

I'll forward this to the "developer" person.

(by "developer" I mean a person who innovates new ideas/technology to use on our factory or solves problems with said technology)

1

u/dmyze VB.Net Master Nov 14 '19

Notepad++ is free and would do the trick, just turn off the line number in the printer preferences.

1

u/[deleted] Nov 12 '19

Labels are the devil. Is that VB6 you're using?

1

u/-Nahkis- Nov 12 '19

Yes that is correct, VB6

1

u/chrwei Nov 12 '19

how are you printing?

1

u/NotReallyThatClever Nov 13 '19

SATO printers should include a driver disc with a label printing application (NiceLabel I think?) that should be way more than enough, even in its free edition, to handle what you need. Hell, even Word is enough to do what you want, the way you want it.