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

后端 未结 4 506
-上瘾入骨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:39

    Try this solution if you think its feasible for you - Once the webmethod creates file in Temp folder, you need to copy the file and paste it into other location or same location with different name and pass newly copied file path to your PDF reader.

提交回复
热议问题