This is a migrated thread and some comments may be shown as answers.

Closing PdfFormatProvider.Export

1 Answer 52 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 29 Sep 2014, 07:23 AM
Hi,

When trying to overwrite an already created pdf file using the following code:

      Dim OutStream As New FileStream(Me.FileName, FileMode.Create)
      PdfFormatProvider.Export(Me.PDFDocument, OutStream)
      OutStream.Close()

I get an error "File is being used by an other process"

What do I miss in ending the first operation?

Regards,
Brian

1 Answer, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 29 Sep 2014, 11:12 AM
Hi Brian,

We were unable to reproduce such behavior. Is it possible to open a support ticket and attach a project that will demonstrate this? This will allows us to investigate the cause of the issue on our end and advise you accordingly.

We are looking forward to hearing from you.

Regards,
Kammen
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PdfProcessing
Asked by
Brian
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Share this question
or