Display .doc file with header and footer on iPhone

I want to display a .doc file with header and footer in iPhone. I am currently using webview to display a file. I can display the file, but the header and footer of the .doc file do not appear in the webview.

To show the .doc file, I used the following code.

    NSString *path = [[NSBundle mainBundle] pathForResource:@"a" ofType:@"doc"];
    NSURL *targetURL = [NSURL fileURLWithPath:path];
    NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
    [pdfWebView_ loadRequest:request];

How to display .doc file with header and footer?

+3
source share
1 answer

You can do this by setting the method, i.e. you can add a UILabel or UIImageView instead of the header and footer of your UIView and between them which UILabels add a UIWebView.

0
source

All Articles