Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6320059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:54:23+00:00 2026-05-24T15:54:23+00:00

Is it possible to open word and excel file in iPhone/iPad without using UIWebview?

  • 0

Is it possible to open word and excel file in iPhone/iPad without using UIWebview?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:54:24+00:00Added an answer on May 24, 2026 at 3:54 pm

    You have two options. For iOS 4.0 or later, you can use the QLPreviewController. You will need to implement the following two methods-

    - (NSInteger) numberOfPreviewItemsInPreviewController: (QLPreviewController *) controller 
    {
      return 1; //assuming your code displays a single file
    }
    
    - (id <QLPreviewItem>)previewController: (QLPreviewController *)controller previewItemAtIndex:(NSInteger)index 
    {
      return [NSURL fileURLWithPath:path]; //path of the file to be displayed
    }
    

    And initialize the QLPreviewController as follows-

    QLPreviewController *ql = [[QLPreviewController alloc] init];
     ql.dataSource = self;
     ql.delegate = self;
     ql.currentPreviewItemIndex = 0; //0 because of the assumption that there is only 1 file  
     [self presentModalViewController:ql animated:YES];
     [ql release];
    

    For older iOS versions, you can use the UIDocumentInteractionController in the following way. Implement the delegate method-

    - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
     return self;
    }
    

    Init & display-

        UIDocumentInteractionController* docController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
    docController.delegate = self;
    [docController presentPreviewAnimated:YES];
    

    Thanks,

    Akshay

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to open notepad, word or excel files from sql server using some
We all know that it is possible to open a Word document (or file
I am trying to open a Word file for reading using a FileStream in
Is it possible to open an iPhone application or an Xcode project from the
Is it possible to open a .mdf database file created in Visual Studio with
Is is possible to open a text file and read the contents while another
Is it possible to open the same file in two separate windows in Xcode.
I know its possible to open an app from mobile safari using custom URL
I was wondering if it is possible to open an xml file as a
What is the best way to open a Word file that was stored as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.