Quote:
But, it is not working
ok .. what is it doing - what does it produce if anything/where does the program stop ??
"it is not working" is of no use to us whatsoever, because we cant see your system
You need to be able to describe the problem with a lot more accuracy if you expect people to be able to help you
I suggest you start putting logging/displays around things like
Quote:
pfilename = dgr.Cells[0].Value.ToString();//pdf file name
pdfilename = dgr.Cells[7].Value.ToString();// pdf file name in specific format.
so you can see what values these cells have - that may be part of your problem