Closing PdfFormatProvider.Export

2 posts, 0 answers
  1. Brian
    Brian avatar
    24 posts
    Member since:
    Apr 2008

    Posted 29 Sep 2014 Link to this post

    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
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 29 Sep 2014 Link to this post

    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.
     
Back to Top