Autor Beitrag
Mordsklebe
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 05.03.08 16:09 
Hallo,

ich habe mir bisher meine Grafik einfach drucken lassen, allerdings würde ich jetzt gerne auch noch Text zur Grafik hinzufügen, weiß aber nicht wie ich das sinnvollerweise machen kann.
Es wäre sehr nett wenn Ihr mir dabei helfen könnt. Also hier mein bisheriger Quellcode.

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
        //druckt die aktuelle Ansicht
        private void printItem_Click(object sender, EventArgs e)
        {
               PrintDialog pd = new PrintDialog();
               pd.Document = this.printDocument1;
               if (DialogResult.OK == pd.ShowDialog())
                  {
                      printDocument1.Print();
                  }
               zeichenFenster.Refresh();
            
        }
        private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
        {
            graph = e.Graphics;
            paintingAll();
             graph = Graphics.FromImage(zeichenFenster.Image);
        }


Wär echt super, wenn Ihr mir Konkrete Lödungen mit Quellcode geben könntet.
Vielen Dank schon mal im Voraus.

Moderiert von user profile iconChristian S.: C#-Tags hinzugefügt
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4805
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mo 10.03.08 12:58 
Mittels e.Graphics.DrawString(...) kannst du nachträglich noch Text hinzufügen.
maro158
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Di 11.03.08 09:49