title: Monotouch: UIDocumentInteractionController, view documents (pdf, word, excel and so on) How to?
body: <p>I have a question for you and I don't know to resolve it. I'll try to explain this scenario.</p>
  
  <p>1) My iPad app connects to a web server and can download documents.
  2) Once downloaded, it can open the document.</p>
  
  <p>My questions are:</p>
  
  <p>first, is it possible to download a stream (or something else) in the ipad? Do I have to save it as a temporany file?</p>
  
  <p>second, how can I use the UIDocumentInteractionController to open that downloaded file?</p>
  
  <p>Thank you in advance. Regards.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>How it is possible to change the title for buttons of the preview document? By default, there is a button whose title is "Done". Is it possible to change its title or replace it with another one?</p>
  
  <p>The code I'm using is the following:</p>
  
  <pre><code>public class UIDocumentInteractionControllerDelegateClass: UIDocumentInteractionControllerDelegate
  
  public UIViewController FileViewController;
   public UIDocumentInteractionControllerDelegateClass (UIViewController parent)
   {
     FileController = parent;
   }
  
   public override UIViewController ViewControllerForPreview (UIDocumentInteractionController controller)
   {
     return FileViewController;    
   }
  
   public override UIView ViewForPreview (UIDocumentInteractionController controller)
   {
    return FileViewController.View;
   }
  }
  </code></pre>