[Logo] smithproject.org
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
Messages posted by: hfelici2  XML
Profile for hfelici2 -> Messages posted by hfelici2 [3]
Author Message
Alehluya!!!!
first of all let me thank you all because Its been really hurting me the fact that as much as I love opensource, my main apps are all running in cfml and, until now I have been looking for possible alternatives just because of this. No more.
I am now looking forward to take some really good time to start running apps and making changes to the projectsmith, hoping a really good community grows from here on, around this great language wich is cfml.

regards.
Héctor

Hi,

I worked out a method using a combination of

PDFCreator ( http://sourceforge.net/projects/pdfcreator/ )
POW ( https://addons.mozilla.org/en-US/firefox/addon/3002 )
and auto-it ( http://www.autoitscript.com/autoit3/ )
and a vmware machine running windows+firefox+pow+pdfcreator
or any windows machine with firefox+pow+pdfcreator


POW is a web server for your web browser.
set the home page of the vmware-firefox to
you intermediate page you create to print:
example: http://server/tmp/page-to-print.html

In SmithProject create the file tmp/page-to-print.html
and then call http://vmware-ip:6670/pow-autoit-print.sjs
( 6670 is POW port )

this will execute pow-autoit-print.exe ( wich is the
compiled version of pow-autoit-print.au3 )
and will
Ctrl-Home ( go to the home page )
Ctrl-P ( open print dialog )
Enter ( print !!! )
print to default printer ( ej:PDF Printer )
tmp/page-to-print.html

in one or two seconds you have a PERFECT mozilla-rendered
PDF, nothing to do with ugly cfdocument

Maybe smithProject could implement cfdocument in a similiar
way using the java gecko engine: JRex

happy hacking.
Héctor.



pow-autoit-print.sjs
---------------------------
<?sjs
var head = get_pow_header("Welcome to POW");
document.write(head);
?>
<html>
<head>
<title>por-autoIt-print</title>
</head>
<body>
printing ...
<?sjs
pow_exec("pow-autoit-print.exe","");
?>
ok
</body>
</html>





pow-autoit-print.au3
---------------------------
Opt("WinTitleMatchMode", 2)
WinActivate("Mozilla")
Send("!{HOME}")
Send("^p")
Send("{Enter}")

Hi guys,

We've been working in Madrid with cfml since version 3, and I have been waiting for an open source iniciative on CFML for a looong time.
We have lots and lots of code that we would love to test if you go open source. We made lots of bug hunting for BlueDragon and would love to invest our effort in this smithproject. We could also take care of making debian packages ...

apt-get install tomcat smithproject mywebapp

been dreaming about it for a time.
Keep up the work and know you can count on us if this goes open-source

salud!
Héctor
http://coolbleiben.net
 
Profile for hfelici2 -> Messages posted by hfelici2 [3]
Go to:   
Powered by JForum 2.1.6 © JForum Team