Bug in exporting file twice using SQL Report Viewer Control in a WinForm Application RRS feed

  • Question

  • We have encountered a bug of ReportViewer control. During the first try of exporting the file, file is successfully exported.
    However, if the user opens the file in an acrobat reader then export it with the same filename. ReportViewer throws an exception

    "The process cannot access the file "c:\...." because it is being used by another user.

    Could anyone has a encountered this error? Any suggestions.
    Tuesday, November 11, 2008 6:48 AM

All replies

  • It sounds like Acrobat has the file locked when it opens it which therefore prevents anything else, including the viewer, from accessing it.  If you close Acrobat, does it then work?
    Tuesday, November 11, 2008 4:24 PM
  • It does work. But the bug is on the ReportViewer Control. I could not check the filename entered by the user is open or not.

    Any ideas for work around?

    Wednesday, November 12, 2008 3:56 AM