when I try to open my pdf report from my program, if the pdf file is already open it shows exception like "The process cannot access the file 'path..\sample.pdf' because it is being used by another process".. how can I show a message that the document is open. or how can I reopen the same opened pdf file according to my request?? It shows exception on this line
PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(@"F:\\reports\\" + "DepartmentPresentReport.pdf", FileMode.Create));