en@frrom
9th March 2007, 17:41
Hi all,

I have a report with my own version of ttstpconv to convert a report to html-format (including html-formatting etc). The device is linked to my 3GL-conversion program, which creates the html-file. Now I want to convert the ready html-file to pdf-format, and open Adobe for the user with the generated pdf-file.

For all clearity: I don't need a conversion from Baan report to pdf (by linking the conversion application to the device), but I need the next step; i.e. in a 3GL program I need to convert a ready and existing html-file to pdf and launch the pdf-file for the user as the report output.

Anyone knows how to achieve it? If someone has a working example, I would appreciate that.


Kind regards,
Eli Nager

smallboy
9th March 2007, 18:35
Hi en@frrom,
i suggest you to use htmldoc (http://www.htmldoc.org/) to obtain pdf from html file. It's free software (under GPL licence) and has many nice feature

You can use a command line like this:
shell("htmldoc --webpage -f output.pdf filename.html ")

Than to display the output to the users you can do
server2client(<coplete_path_of_pdf_on_server>, <coplete_path_on_client>, FALSE)
app_start(<coplete_path_on_client>, "", "", "", "")

Hope this helps

Regards

en@frrom
12th March 2007, 16:42
Hi,

Thanks for the link. Anyone experience with HTMLDOC? Also, from a quick look at the downloadable version, it seemed like it's not a ready to use, easy to install package, and still needs compiling, manual registry settings etc. Is there no ready to install, precompiled version...?

smallboy
12th March 2007, 17:35
Hi,
I' ve used it under linux (Suse distro) and it is part of the distribution (probably non installed as default but you can find rpm on official repository).

If you are looking for a windows binary... well googling a bit produces this result
http://users.tpg.com.au/naffall/htmldoc.html (Please note that I' ve never tried this package)

Of course you can buy precompiled package from main site
http://www.easysw.com/htmldoc/

Hope this helps

Regards

Jacoline
10th September 2007, 15:38
Hi Eli Nager,

See at: www.hidox.nl for a nice sollution 100% integrated in Baan (all versions) FormDesigner can created Word, HTML/XML and PDF.