These were a little old, but were high in google ranking, so I thought that I would choose the answer received from Chrome, display in pdf format, duplicate headers received from the server
Basically my problem also was that the file name contains commas. Substitute a comma to remove them, and everything should be in order. My function to create a valid file name is below.
public static string MakeValidFileName(string name) { string invalidChars = Regex.Escape(new string(System.IO.Path.GetInvalidFileNameChars())); string invalidReStr = string.Format(@"[{0}]+", invalidChars); string replace = Regex.Replace(name, invalidReStr, "_").Replace(";", "").Replace(",", ""); return replace; }
Bryan Roberts Feb 12 '13 at 16:10 2013-02-12 16:10
source share