L'impression avec e.graphic....

Résolu
cs_vara956 Messages postés 50 Date d'inscription mardi 12 octobre 2004 Statut Membre Dernière intervention 4 novembre 2008 - 8 août 2006 à 14:50
scottmat Messages postés 438 Date d'inscription samedi 24 mai 2003 Statut Membre Dernière intervention 23 janvier 2011 - 30 août 2006 à 12:06
salut

voila je fais une application pour faire des devis,
tout fonctionne correctement meme l'impression,

mais je voudrait mettre certaine lignes en gras et la je seche !

exemple de mon code :
Dim

printfontA AsNew Font("Arial", 16)

Dim printfontb
As
New Font("Arial", 7)
e.Graphics.DrawString("Sebelec", printfontA, Brush, 20, 35, drawFormat)e.Graphics.DrawLine(blackPen, x1, y1, x2, y2)
e.Graphics.DrawString("Siège social :" & vbTab & "10 rue ampère", printfontb, Brush, 100, 60, drawFormat)
e.Graphics.DrawString(vbTab & vbTab & "ZI - BP 254", printfontb, Brush, 100, 75, drawFormat)e.Graphics.DrawString(vbTab & vbTab & "69685 Chassieu cédex", printfontb, Brush, 100, 90, drawFormat)
e.Graphics.DrawImage(newImage.FromFile("C:\solufast\data\ABB_logo.gif"), 630.0F, 30.0F)

ce code fonction mais je voudrais la premier ligne en gras avec la meme police

merci de votre aide
sebastien

2 réponses

scottmat Messages postés 438 Date d'inscription samedi 24 mai 2003 Statut Membre Dernière intervention 23 janvier 2011 1
30 août 2006 à 12:06
Alors ? it is good ?
3
scottmat Messages postés 438 Date d'inscription samedi 24 mai 2003 Statut Membre Dernière intervention 23 janvier 2011 1
27 août 2006 à 20:24
salut,
pour du code en gras :



e.Graphics.DrawString(


"Texte ici", New Font("Microsoft Sans Serif", 8.0!, FontStyle.Bold), Brushes.Red, 525, 130)

Voila :)
0
Rejoignez-nous