private void timer1_Tick(object sender, EventArgs e) { string time = DateTime.Now.Hour + ":" + DateTime.Now.Minute + ":" + DateTime.Now.Second; if (time == "23:18:10") { PrintDocument document = new PrintDocument(); document.PrintPage += this.PrintPage; document.Print(); }} private void PrintPage(object sender, PrintPageEventArgs e) { using(Font font = new Font("Lucida Console",30)){ e.Graphics.DrawString(@@@ how can i call the data from datagridview@@, font, Brushes.Blue, e.PageBounds.Left, e.PageBounds.Top); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)