Is it possible to load and display the .csv files and .ppt files into UIWebview. If then can anyone suggest me how it can be implemented.
Thanks in advance
For loading file in UIWebView you have to create request as below:
[webView loadRequest:[NSMutableURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:#"Question" ofType:#"csv"]]]];
Same is also applicable for PPT, PDF etc.
Related
I'm currently working with the Autodesk Viewer API to display and add markups to DWG files. I now can add markups and retrieve them.
I saved one markup as a svg file and now, I'm looking for a way to load the SVG file to display the markup on my viewer.
Do you have any idea on how I could do that?
Thanks.
Markups can be loaded using the loadMarkups method. Here's an example: https://developer.api.autodesk.com/viewingservice/v1/viewers/docs/tutorial-feature_markup.html#saving-and-loading-markups.
I would like to generate Pdf using QCoreApplication instead of QApplication in QT.Is there solution for this? Thanks in advance.
I do not think you can create/write a pdf file using QCoreApplication. Writing a PDF file at the very mimimum requires rendering the text in a desired font. That, as far as I know, can be done only using a QPrinter, which requires QApplication to be constructed.
There are several open source pdf libraries which allow you to create pdf files. You could try iText, libHaru, or podofo for writing pdf files.
How can I give a link to user to download an excel file link on JSP?
my excel will be stored under Web-INF , one folder above my JSP page.
Thanks ahead.
Sample Excel File
I have a list of images (jpg) that I am displaying in the detailView and each image has a corresponding text file with information about the image. I am trying to use a UITextView to display the contents of the text file, but I have trouble getting it to display anything at all. I have made my text view read-only as I do not want to contents of my .txt files to be editable.
This is what I have:
NSString *file = [[NSBundle mainBundle] pathForResource:#"%#" ofType:#"txt"];
if (file){
NSString *textFromFile = [NSString stringWithContentsofFile:file];
textView.text = textFromFile;
}
I think that you probably want to use a label to display small snippets of non-interactive text. Afterwards make sure that you link the UI component you decide on with the File Owner in order to actually connect your variable declaration in the code to the UI component. Let me know how this goes!
i need some help.I have directory which contains multiple files.
I have path for that directory,
i want to display the contents of directory in a uitableview.
Like in each cell a file of that directory.
when tapping that cell i want to open that file in iPhone.
Please help me.
Thanks in advance!!
Refer to this article for folder listing
then once you've grabbed all the information, use the UITableViewController to display the information in the cells. Then handle each file type depending on what it is (images? videos?) by overriding
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
You can find the documentation and some apple examples here