hello
i used the code found here :
http://vb-helper.com/howto_net_print_long_text.html to print paragraph.
here is my code :
Private Sub AperçuAvantImpressionToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
AperçuAvantImpressionToolStripMenuItem.Click
m_Paragraphs = New Collection
Dim mtEspaces As String = Chr(9)
For i As Integer = 1 To 20
m_Paragraphs.Add(New ParagraphInfo(11, i.ToString + ") " +
NbEnRomain(CShort(utility.GenNombre(Min, Max))) + " = .......... " +
mtEspaces + NbEnRomain(CShort(utility.GenNombre(Min, Max))) + " =
.......... "))
m_Paragraphs.Add(New ParagraphInfo(9, vbCrLf))
Next
m_Paragraphs.Add(New ParagraphInfo(9, vbCrLf))
m_Paragraphs.Add(New ParagraphInfo(9, " " + Now + " " +
"|#|---------------:-: SC@LPA PRODUCTION :-:---------------|#|"))
' Make a PrintDocument and attach it to the PrintPreview dialog.
dlgPrintPreview.Document = PreparePrintDocument()
' Preview.
dlgPrintPreview.WindowState = FormWindowState.Maximized
dlgPrintPreview.ShowDialog()
End Sub
But during the preview the strings appear without tabulation......
http://www.scalpa.info