msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Formating in DOS

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
Niraj Ranka



Joined: 04 Oct 2007
Posts: 1

PostPosted: Tue Jun 05, 2007 4:46 pm    Post subject: Formating in DOS Reply with quote

Hello,

Is their any way to increase font size in Dos Printing using VB6

I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
Chr(27) & Chr(45) & Chr(1) & _
"NORTHWIND PRODUCTS REPORT" & _
Chr(27) & Chr(72) & Chr(20) & _
Chr(27) & Chr(45) & Chr(0) '//Bold Off

But unalble to inrease the size of font.

Thanx in advance.
Niraj Ranka

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
Ethan Winer



Joined: 04 Oct 2007
Posts: 30

PostPosted: Tue Jun 05, 2007 6:13 pm    Post subject: Re: Formating in DOS Reply with quote

> Is their any way to increase font size in Dos Printing using VB6

Wrong Newsgroup. This group is for the older DOS version of VB.
Back to top
View user's profile Send private message
DK



Joined: 04 Oct 2007
Posts: 2

PostPosted: Tue Jul 10, 2007 1:17 pm    Post subject: Re: Formating in DOS Reply with quote

On Jun 5, 2:16 am, "Niraj Ranka" wrote:
> Hello,
>
> Is their any way to increase font size in Dos Printing using VB6
>
> I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
> Chr(27) & Chr(45) & Chr(1) & _
> "NORTHWIND PRODUCTS REPORT" & _
> Chr(27) & Chr(72) & Chr(20) & _
> Chr(27) & Chr(45) & Chr(0) '//Bold Off
>
> But unalble to inrease the size of font.
>
> Thanx in advance.
> Niraj Ranka

The only way I found to do this was to have a .bat program send a text
file to the printer. Where the text file has embedded formating codes.
Back to top
View user's profile Send private message
H-Man



Joined: 04 Oct 2007
Posts: 23

PostPosted: Tue Jul 10, 2007 4:04 pm    Post subject: Re: Formating in DOS Reply with quote

On Tue, 5 Jun 2007 12:46:39 +0530, Niraj Ranka wrote:

> Hello,
>
> Is their any way to increase font size in Dos Printing using VB6
>
> I tried using Print #1, Space(20) & Chr(27) & Chr(71) & Chr(14) & _
> Chr(27) & Chr(45) & Chr(1) & _
> "NORTHWIND PRODUCTS REPORT" & _
> Chr(27) & Chr(72) & Chr(20) & _
> Chr(27) & Chr(45) & Chr(0) '//Bold Off
>
> But unalble to inrease the size of font.
>
> Thanx in advance.
> Niraj Ranka

For Epson emulation look at the website below and look specifically at the
fonts sections (point size and pitch). Do a Google search if using a
printer with different emulation or command set.
http://webpages.charter.net/dperr/links/esc_p2.htm

Are you writing the strings to a file and then dumping the file afterwards?
I'm not sure you can open a LPT and use Print # on it in VB6, at least I've
never seen it. I'd be interested in knowing exactly how you're
accomplishing this.


--
HK

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
VB Date formating Update problem Hi I am using ADO, VB6 and MS SQL Server 2000 Why is it that when I run this statement I get the wrong date format and date sSQL = "UPDATE tbl_MyTable SET = " & Date() sSQL = sSQL & " WHERE & glSc

Calculate Last Digits Hi everyone, I am trying to loop through ALL the combinations and count the number of occurances of the last digit for each of the combinations in a 649 Lotto. There are 10 categories of last digit :- 111111 = 2,887,500 Combinations 211110 = 6,930,000 Com

Displaying a pgm (Portable Grayscale Map) file in vb 6.0? Hi, Im using VB 6.0 and need to display a pgm (Portable Grayscale Map) file. Is there an existing component that can do this? Or else is there an easy method to convert this to a bmp/jpg file. Any help is greatly appreciated, Thanks.

Iterating through menu Control? I want to display menus and their Parent Menus, how can I ? I can print menu names with the following command, But I am unable to retrieve their Parent Menus. For each control in me.controls if typeof control is Menu then debug.print Control.Name endif ne

Dynamically Manipulating a query i have Ms Access Database . how can i display the Monthly wise records in report? is it possible 4 using data environment? plz .... help me.........
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group