private void btn_print_project_Click(object sender, EventArgs e) { FrmQuoteReport report = new FrmQuoteReport(); report.Show(); this.Hide(); }
void Send() { FrmQuoteReport report = new FrmQuoteReport(); report.Show(); report.Hide(); string path = @"\\designsvr1\apps\Design and Supply CSharp\Documents\Jodan Quote\Temp Files\Quote" + Valuesclass.project_id + ".PDF"; string recipients = string.Join("", Functionsclass.Emailrecipients); Outlook.Application app = new Outlook.Application(); Outlook.MailItem mailItem = app.CreateItem(Outlook.OlItemType.olMailItem); mailItem.Subject = "Project Number: " + Valuesclass.project_id; mailItem.To = recipients; //mailItem.Body = "Test"; mailItem.Attachments.Add(path); mailItem.Importance = Outlook.OlImportance.olImportanceHigh; mailItem.Display(false); }