I am developing a desktop application using SWT.I have embedded a browser in it.I want to add print and print preview functions to this app.I have searched for tutorials but dint find any except this http://www.eclipse.org/forums/index.php/t/122978/ .But to understand this solution i need to know how to implement print fuction.Does anyone have any ideas?Iknow we can use browser.execute() to print but i dont want to use any other scripts.
Asked
Active
Viewed 112 times
0
-
Maybe this answer is a start? Not exactly a tutorial, but it looks like a working example: http://stackoverflow.com/questions/15156231/print-using-swt-browser-widget – Calon Aug 01 '14 at 05:52
-
@Calon Ive seen that already.He uses a java script. – user3873909 Aug 01 '14 at 06:00
-
Ah, sorry, didn't read your last sentence thoroughly. – Calon Aug 01 '14 at 06:02
-
Eclipse help uses `Browser.execute` so I don't think there is any other way. – greg-449 Aug 01 '14 at 07:05
-
@greg-449 But the answer in the link i specified tells that there is a way to do using printer API of SWT – user3873909 Aug 01 '14 at 07:25
-
That is talking about ordinary SWT controls, the Browser is different. – greg-449 Aug 01 '14 at 07:26