Click here to Skip to main content
15,888,095 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionComma, ')', or a valid expression continuation expected Pin
gauravsaraogi2115-Dec-15 3:41
gauravsaraogi2115-Dec-15 3:41 
AnswerRe: Comma, ')', or a valid expression continuation expected Pin
CHill6015-Dec-15 5:24
mveCHill6015-Dec-15 5:24 
Questionhow to display marker on digital map with mapwingis VB.NET Pin
joerwanto14-Dec-15 22:57
joerwanto14-Dec-15 22:57 
QuestionRe: how to display marker on digital map with mapwingis VB.NET Pin
CHill6015-Dec-15 5:14
mveCHill6015-Dec-15 5:14 
QuestionPrinting invoice in CRSTAL report 8.5 in DOT MATRIX Printer in roll Paper Pin
imagetvr12-Dec-15 20:59
imagetvr12-Dec-15 20:59 
AnswerRe: Printing invoice in CRSTAL report 8.5 in DOT MATRIX Printer in roll Paper Pin
Dave Kreskowiak13-Dec-15 5:17
mveDave Kreskowiak13-Dec-15 5:17 
QuestionPrinting invoice in Continuous stationery in usb dot matrix in VB6 Pin
imagetvr12-Dec-15 21:31
imagetvr12-Dec-15 21:31 
AnswerRe: Printing invoice in Continuous stationery in usb dot matrix in VB6 Pin
Dave Kreskowiak13-Dec-15 5:12
mveDave Kreskowiak13-Dec-15 5:12 
imagetvr wrote:
I am developing a sample project in Visual basic 6 and MS Access 2003.


Why are you using VB6? It's been dead for quite a long time now.

In the .NET world, there is the PosPrinter class in the Microsoft POS for .NET library that will do what you want. No, you can't use it in your VB6 code.

The code you've written will not work because you're "printing" to a paper size. This size is required by the Printer object and cannot be infinitely long or of an undetermined size before you start printing. You have to "print" directly to the printer itself without using the Printer object. That also means you do not get to specify fonts and sizes like you have. You have to specify these things, if possible at all, by using the control characters and commands specific to the printer. See the printers documentation on how to do this.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

QuestionVB.NET DUPLICATE SCREEN SHARING PROBLEM Pin
Steve Roseik12-Dec-15 7:58
Steve Roseik12-Dec-15 7:58 
GeneralRe: VB.NET DUPLICATE SCREEN SHARING PROBLEM Pin
CHill6013-Dec-15 2:36
mveCHill6013-Dec-15 2:36 
GeneralRe: VB.NET DUPLICATE SCREEN SHARING PROBLEM Pin
Steve Roseik13-Dec-15 8:06
Steve Roseik13-Dec-15 8:06 
GeneralRe: VB.NET DUPLICATE SCREEN SHARING PROBLEM Pin
CHill6013-Dec-15 8:15
mveCHill6013-Dec-15 8:15 
GeneralRe: VB.NET DUPLICATE SCREEN SHARING PROBLEM Pin
Steve Roseik20-Dec-15 7:31
Steve Roseik20-Dec-15 7:31 
QuestionUsing Await Pin
jkirkerx10-Dec-15 14:02
professionaljkirkerx10-Dec-15 14:02 
AnswerRe: Using Await Pin
CHill6012-Dec-15 4:02
mveCHill6012-Dec-15 4:02 
GeneralRe: Using Await Pin
jkirkerx12-Dec-15 13:57
professionaljkirkerx12-Dec-15 13:57 
GeneralRe: Using Await Pin
CHill6013-Dec-15 2:35
mveCHill6013-Dec-15 2:35 
AnswerWell here's what I ended up with Pin
jkirkerx13-Dec-15 12:30
professionaljkirkerx13-Dec-15 12:30 
QuestionLINQ group By Pin
byka8-Dec-15 4:58
byka8-Dec-15 4:58 
QuestionBuild this as a separate project within the project Pin
jkirkerx7-Dec-15 11:18
professionaljkirkerx7-Dec-15 11:18 
AnswerRe: Build this as a separate project within the project Pin
Wombaticus7-Dec-15 11:33
Wombaticus7-Dec-15 11:33 
GeneralRe: Build this as a separate project within the project Pin
jkirkerx7-Dec-15 11:59
professionaljkirkerx7-Dec-15 11:59 
GeneralRe: Build this as a separate project within the project Pin
Wombaticus7-Dec-15 12:08
Wombaticus7-Dec-15 12:08 
GeneralRe: Build this as a separate project within the project Pin
jkirkerx8-Dec-15 12:30
professionaljkirkerx8-Dec-15 12:30 
QuestionPrinting in Visual Studio 2015 Pin
DelboyKent5-Dec-15 5:29
DelboyKent5-Dec-15 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.