File.Copy fails


V

Vijay Ganesh

We are using a logo by calling Image.FromFile().

Based on that we are opening a report (using a 3rd party Report generation
tool) and without closing the report, We are trying to change the logo by
calling File.Copy, at that time application fails to copy and throws
exception. The report is somehow locking locking the logo file, and that's
why the copy into the logo file fails. But how do we disassociate the logo
file from the created report?

Could you please let me know about this issue?


Thanks,
Vijay
 
Ad

Advertisements

P

Peter Morris

You should instead change the filename that the report uses to load the
logo, a much better approach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top