Cannot access the file because it is being used by another process

后端 未结 4 497
-上瘾入骨i
-上瘾入骨i 2020-12-17 00:47

My web method creates a pdf file in my %temp% folder and that works. I then want to add some custom fields (meta) to that file using the code below.

The class

4条回答
  •  北海茫月
    2020-12-17 01:35

    Try to .Dispose() your PDF reader (or whatever you use for creating it) when you save the file for the first time

提交回复
热议问题