E
Edwin Smith
Hello:
I have a problem building a file command line argument from 2 cells in a
table with the following code.
string filePath =
insuranceDataGridView.CurrentRow.Cells[5].FormattedValue.ToString();
string fileName = "0000000" +
Convert.ToString(Convert.ToDecimal(insuranceDataGridView.CurrentRow.Cells[6].FormattedValue.ToString())
/ 1000) + ".tif";
string cmdArgument = filePath + fileName;
The Path cell in the table = "P:\TTG\Data\VWP\IDCARDS\CD1\"
The string fileName evaluates to "00000004.679.tif" but I'm not having a
problem getting either of these strings.
The problem is when I try to concatenate them together. What I get is
cmdArgument = "P:\TTG\Data\VWP\IDCARDS\CD1\" without the fileName part.
I think it may have something to do with the trailing "\" in the path but
I've tried preceeding the values with a "@" but it doesn't help.
Can anyone show me where I'm going wrong?
Thanks
Edwin
I have a problem building a file command line argument from 2 cells in a
table with the following code.
string filePath =
insuranceDataGridView.CurrentRow.Cells[5].FormattedValue.ToString();
string fileName = "0000000" +
Convert.ToString(Convert.ToDecimal(insuranceDataGridView.CurrentRow.Cells[6].FormattedValue.ToString())
/ 1000) + ".tif";
string cmdArgument = filePath + fileName;
The Path cell in the table = "P:\TTG\Data\VWP\IDCARDS\CD1\"
The string fileName evaluates to "00000004.679.tif" but I'm not having a
problem getting either of these strings.
The problem is when I try to concatenate them together. What I get is
cmdArgument = "P:\TTG\Data\VWP\IDCARDS\CD1\" without the fileName part.
I think it may have something to do with the trailing "\" in the path but
I've tried preceeding the values with a "@" but it doesn't help.
Can anyone show me where I'm going wrong?
Thanks
Edwin