(Msg. 1) Posted: Sun Jun 01, 2008 11:02 pm
Post subject: printing on Hebrew - VB.6. Archived from groups: microsoft>public>il>hebrew>vb, others (more info?)
Hello.
I am using VB. 6.'s Printer class for printing.
The line I am printing has numbers, hebrew characters, and English
characters.
(each columns has other attributes - one column is Hebrew, other represented
a date as dd/mm/yyyy format, other one is only English characters ...)
I want to use the simple Printer, but when printing Hebrew & English
characters, the columns I am printing are not printed at the same order on
the printer as I wish to.
If I could just saparate each column from each other, and ignore the
authomatic reordering (or what it is ...), that each column could not
interfare other, it would be greate.
(Msg. 2) Posted: Sun Jun 01, 2008 11:02 pm
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Mr. X." <nospam RemoveThis @no_spam_please.com> wrote in message
news:g1tku6$oks$1@news4.netvision.net.il...
> I am using VB. 6.'s Printer class for printing. The line
> I am printing has numbers, hebrew characters, and
> English characters. (each columns has other attributes
What do you mean by "column"? Are you using space characters or perhaps tabs
to set the horizontal position of your printed output? If so then I would
suggest that you instead use the Printer's CurrentX property, or perhaps
ScaleLeft, depending on exactly what you are doing.
(Msg. 3) Posted: Mon Jun 02, 2008 2:04 am
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I just build my string with some tab characters,
as following pseudo :
<column1 data> <tab> <column2 data> <tab> <column3 data> <tab> <column4
data>
Column1 data may be English or Hebrew, neigther the other columns.
and yes, I am using tab characters between columns' data.
I'll check out CurrentX and ScaleLeft
(Can you give some code sample, please).
(Msg. 4) Posted: Mon Jun 02, 2008 2:05 am
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Mr. X." <nospam.RemoveThis@no_spam_please.com> wrote in message
news:g1tvkp$vb$1@news4.netvision.net.il...
>I just build my string with some tab characters,
> as following pseudo :
> <column1 data> <tab> <column2 data> <tab>
> <column3 data> <tab> <column4 data>
It is best to avoid tabs wherever possible.
> I'll check out CurrentX and ScaleLeft
> (Can you give some code sample, please).
Okay, but I'm in a bit of a rush at the moment so this is just a very quick
sample with hardly any explanatory comments. Start a new VB project and
place three Command Buttons on the Form. Then paste in the following code.
Run the project and click the three buttons, each of which will produce the
same output, but each of which works in a slightly different way:
Mike
Option Explicit
Private Sub Command1_Click()
' CurrentX one column at a time
Dim n As Long
Printer.Print ' always start with this
Printer.ScaleMode = vbInches
Printer.CurrentY = 0
For n = 1 To 20
Printer.CurrentX = 0.5
Printer.Print "Column One " & Format(n)
Next n
Printer.CurrentY = 0
For n = 1 To 20
Printer.CurrentX = 2.5
Printer.Print "Column Two " & Format(n)
Next n
Printer.EndDoc
End Sub
Private Sub Command2_Click()
' ScaleLeft one column at a time
Dim n As Long
Printer.Print ' always start with this
Printer.ScaleMode = vbInches
Printer.ScaleLeft = -0.5
Printer.CurrentX = 0: Printer.CurrentY = 0
For n = 1 To 20
Printer.Print "Column One " & Format(n)
Next n
Printer.ScaleLeft = -2.5
Printer.CurrentX = 0: Printer.CurrentY = 0
For n = 1 To 20
Printer.Print "Column Two " & Format(n)
Next n
Printer.EndDoc
End Sub
Private Sub Command3_Click()
' CurrentX one line at a time
Dim n As Long
Printer.Print ' always start with this
Printer.ScaleMode = vbInches
Printer.CurrentY = 0
For n = 1 To 20
Printer.CurrentX = 0.5
Printer.Print "Column One " & Format(n);
Printer.CurrentX = 2.5
Printer.Print "Column Two " & Format(n)
Next n
Printer.EndDoc
End Sub
(Msg. 5) Posted: Mon Jun 02, 2008 4:48 am
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
....
So, what shall I do instead of command : "Sleep" ?
(Msg. 6) Posted: Mon Jun 02, 2008 4:48 am
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Mr. X." <nospam.TakeThisOut@no_spam_please.com> wrote in message
news:g1u97d$3j3$1@news4.netvision.net.il...
> So, what shall I do instead of command : "Sleep" ?
Pardon? You asked about printing using the VB Printer Object and about tabs
and column alignment. What has that got to do with Sleep?
(Msg. 7) Posted: Mon Jun 02, 2008 1:05 pm
Post subject: Re: printing on Hebrew - VB.6. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Mike Williams wrote:
> "Mr. X." <nospam.DeleteThis@no_spam_please.com> wrote in message
> news:g1u97d$3j3$1@news4.netvision.net.il...
>
>> So, what shall I do instead of command : "Sleep" ?
>
> Pardon? You asked about printing using the VB Printer Object and about tabs
> and column alignment. What has that got to do with Sleep?
He seems to be crossing/confusing threads.
--
..NET: It's About Trust!
http://vfred.mvps.org
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum