Yes. There is a ScrollBars property which defaults to Both. However it works in conjunction with a WordWrap property whose default is true which suppresses the horizontal scrollbar. You could get at these with the Door library but as I am messing with the source to get a dummy library I'll include these in a new version so you can play with them.Does there exist a horizonzal scrollbar, for example if there is an image in the file wider than the RichTextBox.Width ?
Sources for merging now posted.Could the library also be enclosed in the EXE file, or would it be complicated ?
One of those rtb.Rtf references is not needed!. If that doesn't work I don't know of another way, that is what I would have tried.s = rtb.Rtf & "\trowd\trgaph70\\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs \cellx1982\clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs \cellx3311\pard\intbl\b Das ist die Tabelle\cell Erste Zeile\cell\row\intbl Spalte1\cell Spalte 2\cell\row\pard\b0\"
rtb.Rtf = rtb.Rtf & s
PrinterCE.DrawWidth = 0.025
PrinterCE.DrawLine 10, 5.4, 18.5, 5.4
Sorry but you cannot do any graphics drawing with it, only print text and pictures.but is it possible to print "lines"?
Sorry but you cannot do any graphics drawing with it, only print text and pictures.
Not easily unless you can find a Bluetooth printer that presents itself as a serial Port when you could use the Serial2 or SerialEx libraries to talk to it. There appears to be be no provision in Windows Mobile for printing (although I guess this could change in the future) so I think each printer needs a custom driver and apps that want to use the printer need to understand how to access this driver.Do you think (in the future) it will be possible to make printouts via Pocket-PC and mobile printers (Bluetooth, WLAN, etc.)?
rtb.FontSize = 12
rtb.AddText("Firma"&Tab &Tab &Tab &Tab)
rtb.AddText("Telefon:")
rtb.Alignment = 1 'right
rtb.AddText("07171 - XX XX")
FirmaTelefon:07171 - XX XX
"Firma" should be align left07171 - XX XX should be align right
This is a complex control and I don't know how all the different settings interact so I am afraid that you will just have to play with the options and see what works and what doesn't.I tried to have in one line different alignments
I "played" with your DLL and made a lot of experiments. Here are some results:... you will just have to play with the options and see what works and what doesn't.
'------------------------------------------------------
'Tabelle für den Ankauf
rtb.FontSize =12
rtb.Underline = True
rtb.BackColor = Rgb (192,192,192)
rtb.AddText("| Nr." &Tab &"| Gewicht" &Tab &Tab &"| Karat" &Tab &"| Gegenstand" &Tab &Tab &Tab &"| Euro " &CRLF)
rtb.Underline = False
'------------------------------------------------------
'Nr. 1
rtb.Underline = True
If mZusammenfassung.lvTabelle.CellGet("Euro", 0) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Nr", 0)&"" &Tab)
End If
'Gewicht 1
If mZusammenfassung.lvTabelle.CellGet("Euro", 0) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Gewicht", 0)&" gr" &Tab &Tab)
End If
'Karat 1
If mZusammenfassung.lvTabelle.CellGet("Euro", 0) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Karat", 0)&" ct" &Tab)
End If
'Gegenstand 1
If mZusammenfassung.lvTabelle.CellGet("Euro", 0) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Nr", 0)&" Gegenstand" &Tab &Tab)
End If
'Euro 1
If mZusammenfassung.lvTabelle.CellGet("Euro", 0) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Euro", 0)&" € "&CRLF)
End If
'------------------------------------------------------
'Nr. 2
If mZusammenfassung.lvTabelle.CellGet("Euro", 1) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Nr", 1)&"" &Tab)
End If
'Gewicht 2
If mZusammenfassung.lvTabelle.CellGet("Euro", 1) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Gewicht", 1)&" gr" &Tab &Tab)
End If
'Karat 2
If mZusammenfassung.lvTabelle.CellGet("Euro", 1) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Karat", 1)&" ct" &Tab)
End If
'Gegenstand 2
If mZusammenfassung.lvTabelle.CellGet("Euro", 1) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Nr", 1)&" Gegenstand" &Tab &Tab)
End If
'Euro 2
If mZusammenfassung.lvTabelle.CellGet("Euro", 1) <> "0,00" Then
rtb.AddText ("| "&mZusammenfassung.lvTabelle.CellGet("Euro", 1)&" € "&CRLF)
End If
'------------------------------------------------------
.
.
... and so on ...