Click here to Skip to main content
16,005,552 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to check online Pin
Dave Kreskowiak14-Oct-06 4:01
mveDave Kreskowiak14-Oct-06 4:01 
Questionupdate SQL database from MS Access databse Pin
joealex251013-Oct-06 12:36
joealex251013-Oct-06 12:36 
AnswerRe: update SQL database from MS Access databse Pin
Dave Kreskowiak13-Oct-06 13:14
mveDave Kreskowiak13-Oct-06 13:14 
QuestionRe: update SQL database from MS Access databse Pin
joealex251018-Oct-06 7:42
joealex251018-Oct-06 7:42 
QuestionPausing Certain Code Until Program Completion Pin
dion353713-Oct-06 11:10
dion353713-Oct-06 11:10 
AnswerRe: Pausing Certain Code Until Program Completion Pin
Dave Kreskowiak13-Oct-06 13:10
mveDave Kreskowiak13-Oct-06 13:10 
QuestionHow set paper size [modified] Pin
Tomic13-Oct-06 9:55
Tomic13-Oct-06 9:55 
AnswerRe: How set paper size Pin
Dave Kreskowiak13-Oct-06 10:07
mveDave Kreskowiak13-Oct-06 10:07 
Next time, specify what the error is and on what line you're getting it.

I'm assuming you're using VB6. You can't set the PaperSize with two numbers like this. It only accepts a single number.
' vbPRPSUser is a constant that represents the number 256.
Printer.PaperSize = vbPRPSUser
' Height and Width are specified in twips.  There are approximatly
' 1440 twips per inch.  So, for an 8.5" by 8.5" inch page:
Printer.Height = (8.5 * 1440)
Printer.Width = (8.5 * 1440)



Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: How set paper size Pin
Tomic13-Oct-06 10:29
Tomic13-Oct-06 10:29 
GeneralRe: How set paper size Pin
Dave Kreskowiak13-Oct-06 13:04
mveDave Kreskowiak13-Oct-06 13:04 
QuestionDownload in Internet Explorer Pin
Zaegra13-Oct-06 6:50
Zaegra13-Oct-06 6:50 
AnswerRe: Download in Internet Explorer Pin
Dave Kreskowiak13-Oct-06 7:29
mveDave Kreskowiak13-Oct-06 7:29 
GeneralRe: Download in Internet Explorer Pin
Zaegra13-Oct-06 20:37
Zaegra13-Oct-06 20:37 
GeneralRe: Download in Internet Explorer Pin
Dave Kreskowiak14-Oct-06 4:07
mveDave Kreskowiak14-Oct-06 4:07 
QuestionProject referencing DLL that may not be there Pin
rahvyn613-Oct-06 4:48
rahvyn613-Oct-06 4:48 
AnswerRe: Project referencing DLL that may not be there Pin
Dave Kreskowiak13-Oct-06 5:31
mveDave Kreskowiak13-Oct-06 5:31 
GeneralRe: Project referencing DLL that may not be there Pin
rahvyn613-Oct-06 5:35
rahvyn613-Oct-06 5:35 
GeneralRe: Project referencing DLL that may not be there Pin
Dave Kreskowiak13-Oct-06 5:44
mveDave Kreskowiak13-Oct-06 5:44 
Questionscanners Pin
deepak02613-Oct-06 4:09
deepak02613-Oct-06 4:09 
AnswerRe: scanners Pin
Dave Kreskowiak13-Oct-06 4:23
mveDave Kreskowiak13-Oct-06 4:23 
QuestionKey press for individual comboboxes Pin
Racos13-Oct-06 2:59
Racos13-Oct-06 2:59 
AnswerRe: Key press for individual comboboxes Pin
Dave Kreskowiak13-Oct-06 4:21
mveDave Kreskowiak13-Oct-06 4:21 
GeneralRe: Key press for individual comboboxes Pin
Racos13-Oct-06 7:41
Racos13-Oct-06 7:41 
GeneralRe: Key press for individual comboboxes Pin
Dave Kreskowiak13-Oct-06 7:45
mveDave Kreskowiak13-Oct-06 7:45 
GeneralRe: Key press for individual comboboxes Pin
Racos13-Oct-06 8:05
Racos13-Oct-06 8:05 

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.