B
Booney440
Guest
I have a Winform that I export a excel file. It save the workbook and sheet name, I need to add a space between Date and shift. Currently it looks like this (Truck Report 7-9-18Days) But needs to look like this (Truck Report 7-9-18 Days). dt2 is where I get the date and Combox3 is where I get the shift
This is my code.
private void pictureBox1_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Excel Documents (*.xls)|*.xls";
sfd.FileName = string.Format("Truck Report {0:M-d-yy}{1}.xls", dt2.Value ,comboBox3.SelectedItem);
sfd.OverwritePrompt = false; /// Turn off prompt to Overwrite File False
if (sfd.ShowDialog() == DialogResult.OK) // Show File Dialog Box
Booney440
Continue reading...
This is my code.
private void pictureBox1_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Excel Documents (*.xls)|*.xls";
sfd.FileName = string.Format("Truck Report {0:M-d-yy}{1}.xls", dt2.Value ,comboBox3.SelectedItem);
sfd.OverwritePrompt = false; /// Turn off prompt to Overwrite File False
if (sfd.ShowDialog() == DialogResult.OK) // Show File Dialog Box
Booney440
Continue reading...