i hav a tabular forms used to generate reports which are html files and i want to save these files by filling with data dynamically using obj-c..
any ideas how to do ..
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I do a lot of this. My best friend here is NSString & Co.
Take a special look at the method stringWithFormat.
For example, here is me setting colors for an html table.
For each of the pieces you build you can add to your main html string using the NSString method appendString. After you have finished building your string you cah save it as a file or eamil it or whatever…
Here is the main routine. It should give you a good idea of how to dynamically build and html string: