<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html">Oleoo.com - [Résolu][VBNET] Problème d&#039;impression</title>
	<link rel="self" href="/rewrite.php"/>
	<updated>2008-07-17T04:56:50Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.oleoo.com/topic261168.html</id>
		<entry>
			<title type="html">Re: [Résolu][VBNET] Problème d&#039;impression</title>
			<link rel="alternate" href="http://www.oleoo.com/post3016378.html#p3016378"/>
			<content type="html">C&#039;est bon finalement j&#039;ai réussi lol :p. En fait j&#039;ai créer un compteur invisible qui sera charger de compter le nombre de ticket imprimé ;).</content>
			<author>
				<name>Skysofren</name>
			</author>
			<updated>2008-07-17T04:56:50Z</updated>
			<id>http://www.oleoo.com/post3016378.html#p3016378</id>
		</entry>
		<entry>
			<title type="html">[Résolu][VBNET] Problème d&#039;impression</title>
			<link rel="alternate" href="http://www.oleoo.com/post3015992.html#p3015992"/>
			<content type="html">Salut à tous,

Ba voila je vous explique le problème je suis entrain de faire un logiciel et dans le logiciel je doit faire une impression de Ticket.
Jusqu&#039;a maintenant je suis arrivé à imprimer un seul et unique Ticket mais dans le logiciel j&#039;ai un TextBox apellé &quot;TBnbrticket&quot; qui me permet d&#039;entrer le nombre de ticket désiré.

Ma question serait comment coder mon bouton d&#039;impression afin que si dans &quot;TBnbrticket&quot; j&#039;entre 2 l&#039;imprimante m&#039;imprime 2 ticket et non un seul.

Une partie de mon code :

Private Sub imprimer_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles imprimer.Click
&#039;Impression du Ticket
Me.PrintDocument1.Print()
End Sub

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        &#039;Définitions des polices, Interlignes etc...
        Dim PoliceTitre As New Font(&quot;Arial&quot;, 20, FontStyle.Bold)
        Dim PoliceG As New Font(&quot;Arial&quot;, 12, FontStyle.Bold)
        Dim PoliceS As New Font(&quot;Arial&quot;, 11)
        Dim PoliceTarif As New Font(&quot;Arial&quot;, 14, FontStyle.Bold)
        Dim PolicePrix As New Font(&quot;Arial&quot;, 22, FontStyle.Bold)
        Dim PoliceDescription As New Font(&quot;Arial&quot;, 10, FontStyle.Bold)
        Dim PoliceEntreprise As New Font(&quot;Arial&quot;, 6, FontStyle.Bold)
        Dim XPos, YPos As Single
        Dim Interligne As Single
        Dim ChaineImpr As String = &quot;&quot;
        Dim MyGr As Graphics = e.Graphics
        Interligne = MyGr.MeasureString(Me.titre.Text.ToString, PoliceG).Height
        &#039;Impression de la partie Billet
        MyGr.DrawString(&quot;Titre&quot;, PoliceTitre, Brushes.Black, XPos, YPos)
        MyGr.DrawString(Now, PoliceS, Brushes.Black, XPos, YPos + 2 * Interligne)
        MyGr.DrawString(&quot;Tarif&quot;, PoliceTarif, Brushes.Black, XPos, YPos + 3 * Interligne)
        MyGr.DrawString(prixafiche.Text + &quot; €uro&quot;, PolicePrix, Brushes.Black, XPos, YPos + 4 * Interligne)
        MyGr.DrawString(ComboBox1.Text, PoliceDescription, Brushes.Black, XPos, YPos + 6 * Interligne)
        MyGr.DrawString(&quot;N° Ticket :&quot; + number.Text, PoliceDescription, Brushes.Black, XPos, YPos + 7 * Interligne)
        MyGr.DrawString(&quot;************************&quot;, PoliceDescription, Brushes.Black, XPos, YPos + 8 * Interligne)
        MyGr.DrawString(&quot;Copyright&quot;, PoliceEntreprise, Brushes.Black, XPos, YPos + 9 * Interligne)
        MyGr.DrawString(&quot;Copyright&quot;, PoliceEntreprise, Brushes.Black, XPos, YPos + 10 * Interligne)
    End Sub

Merci d&#039;avance pour l&#039;aide ;)</content>
			<author>
				<name>Skysofren</name>
			</author>
			<updated>2008-07-16T18:48:26Z</updated>
			<id>http://www.oleoo.com/post3015992.html#p3015992</id>
		</entry>
</feed>
