Results 1 to 3 of 3

Thread: how can i change font or charecter size

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Istanbul
    Posts
    49

    how can i change font or charecter size

    hi,
    i use .net and symbol mc3000 pocketpc and seiko sp2400 printer.
    i can print any thing.
    my code is

    Try
    PortSettings = New Serial.HandshakeNone
    MyPort = New Serial.Port("COM1:", PortSettings)
    If MyPort.Open() Then
    For say = 0 To dTable.Rows.Count - 1
    strline &= Mid(DGliste.Item(say, 0), 1, 7) & Space(9 - Len(Mid(DGliste.Item(say, 0), 1, 7)))
    strline &= Mid(DGliste.Item(say, 1), 1, 30) & Space(33 - Len(Mid(DGliste.Item(say, 1), 1, 30)))
    strline &= Mid(DGliste.Item(say, 2), 1, 7) & Space(9 - Len(Mid(DGliste.Item(say, 2), 1, 7)))
    strline &= Mid(DGliste.Item(say, 3), 1, 7) & Space(9 - Len(Mid(DGliste.Item(say, 3), 1, 7)))
    strline &= Mid(DGliste.Item(say, 4), 1, 7) & Space(9 - Len(Mid(DGliste.Item(say, 4), 1, 7)))
    strline &= Mid(DGliste.Item(say, 5), 1, 7) & Space(9 - Len(Mid(DGliste.Item(say, 5), 1, 7)))
    strline &= Mid(DGliste.Item(say, 6), 1, 7) & CrLf
    If i > xtotal Then
    MyPort.putdata(strline)
    strline = ""
    MsgBox("Plase new page !")
    i = 0
    i += 3
    End If

    i += 1
    Next
    MyPort.putdata(strline)
    end if
    Catch ex As Exception
    MsgBox("Error" & ex.Message)
    End Try
    MyPort.Close()

    how can i change font or charecter size. i want use to small size.
    thanks regards.
    Calf

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: how can i change font or charecter size

    Hi,

    Because your using .Net then I think you could use the ' ShowDialog ' property.

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         If FontDialog1.ShowDialog <> DialogResult.Cancel Then
    3.             RichTextBox1.Font = FontDialog1.Font
    4.         End If
    5.     End Sub
    Hope it helps you even for PocketPc.

    Wkr,

    sparrow1
    Last edited by sparrow1; Jan 24th, 2006 at 10:47 AM.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Istanbul
    Posts
    49

    Re: how can i change font or charecter size

    ok, i understand but
    i want to send com1

    i dont know maybe

    strline = chr(13) ......
    Calf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width