I am creating a file manager where i attach files and folder of any type , i keep the URLs of the file in my application . I have a Print button and depending upon the type of file i want to print that file . How can I achieve this functionality? File can be of any type mp3 , docx etc and many more , how should i know which file to print or not?
Asked
Active
Viewed 112 times
1
-
https://www.youtube.com/watch?v=K9sJUd6xvP0&index=48&list=PLE83F832121568D36 Might be of use to you. – Lucas Derraugh Dec 27 '15 at 09:32
-
Do you want to print the file yourself or do you want to start another app (Word) to print the file? – Willeke Dec 28 '15 at 03:05
-
depending upon the file extension. For example if the file is text and it should open Word print open. IS this possible? – Hassan Malik Dec 28 '15 at 07:00
-
@Lucas Derraugh thanks but it will require alot of customization and i only need to open the default print for that file – Hassan Malik Dec 28 '15 at 07:01
-
Take a look at `NSWorkSpace`. – Willeke Dec 28 '15 at 21:45