Current location: Hot Scripts Forums » Programming Languages » Visual Basic » VB Printing Problem


VB Printing Problem

Reply
  #1 (permalink)  
Old 01-31-05, 10:21 PM
venkatesh venkatesh is offline
New Member
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
VB Printing Problem

Hi 2 all,
This is my code

private sub print_sample()
printer.scalemode=vbTwips
printer.height=4*1440
printer.width=6*1440
.
printer.print "Hi"
.
.
printer.enddoc
end sub

my paper size is 4'' height and I need to stop after printing got over i.e., after
4'' but it completly formfeed the entire sheet. Plz any one Help to resolve this problem.
Thanks in Advance.
Reply With Quote
  #2 (permalink)  
Old 03-25-05, 06:53 PM
Keithuk's Avatar
Keithuk Keithuk is offline
Newbie Coder
 
Join Date: Sep 2004
Location: Staffordshire, England
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Have you looked up PaperSize Property in the help? This will give you loads of different sizes to try.
__________________
I've been programming with VB for 13 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

http://www.martin2k.co.uk/forums/
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM
problem printing mysql data by "x rows/page" abtimoteo PHP 1 07-30-04 07:55 PM
SQL infinite loop problem with VB application Syed Visual Basic 2 05-07-04 10:19 AM
Post URL Using VB xkenshin Visual Basic 2 01-25-04 11:37 AM


All times are GMT -5. The time now is 09:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.