Solved

DOS printing Question

Posted on 2002-05-21
7
154 Views
Last Modified: 2010-05-02
Hi all Expers,

I'm printing a DOS print using VB.  Here I goes to second line using following command :
strPrint = strPrint & vbCrLf
means i use VbCrLf to go to next line. It gives me one line space.  But how can I go to next line with the half
line space.  Got it....

0
Comment
Question by:MonaGolu
7 Comments
 
LVL 6

Accepted Solution

by:
Nitin Sontakke earned 50 total points
ID: 7026530
First, there is no such thing as DOS print. Are you trying to say you are printing on dot-matrix printer?

If yes, then I have done extensive DOS development and never knew any way you could programatically control line-spacing. I mean the way you are trying to achieve it.

The line-spacing must be controlled by printer and not the computer. If you do want to change line-spacing programatically, there are escape sequences to be sent to printer prior to giving any actual print command. These are, at times, specific to printer.

Settings, such as form-feed, line-spacing, etc, must be done just at once, at the beginning. Thereafter, when you send a singl line-feed command to printer, it acts as a one and half line-feed.

I hope you are with me. If not, do drop a line.
0
 

Expert Comment

by:GautamMukherjee
ID: 7026631
Please explain your question more clearly so that we can help you out, I had done extensive dos printing through Visual basic, but i not got your question.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7026656
You are sending both a carriage return AND a linefeed using vbCrLf if you use simply vbCR then you only send the carriage return and shouldn't get the addditional space.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:MonaGolu
ID: 7026850
Thanks TimCottee,  i will definately try ur suggestion.  Actually I'dn't done any done printing program as i always makes a Windows Printing using Crystal Report. As u said I'll try with vbCr.  

If someone can't understand my problem then i'm reapiting it that in simple i have to decrease the line spacing in between two lines.  That's it.


0
 

Author Comment

by:MonaGolu
ID: 7065075
Hi TimCottee,
VBCr doen't helps me.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7818350
Hi MonaGolu,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept NitinSontakke@devx's comment(s) as an answer.

MonaGolu, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7909844
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now