Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Danny D. on September 17, 2008, 12:28:54 pm



Title: Genero on Windows XP and printing to windows printers
Post by: Danny D. on September 17, 2008, 12:28:54 pm
Hi all,

Until now we only use BDL and GENERO on Linux platform. Now we need to make an application on windows XP.
For printer we use in general 'start report pr1 to pipe' with an lp instruction. How do we need to print towards on windows printer?

Thanks for any tips!!
Danny


Title: Re: Genero on Windows XP and printing to windows printers
Post by: Stefan S. on September 18, 2008, 03:53:49 pm
Hello Denny,
you can write the report to a file "start report rep1 to file rep.txt"
then you can start an shell/batch file which print this file. If you are using PCL-Commands in your code then you can use pikprtr.exe to print the file with pcl-code (I attached that little program). An other way is to create PDF-Files and then show them with  Acrobat-Reader. For that way we use enscript (for Unix AND Windows!).


hth




Title: Re: Genero on Windows XP and printing to windows printers
Post by: Reuben B. on September 19, 2008, 12:06:11 am
You should be aware of the DBPRINT environment variable.  With DBPRINT=FGLSERVER you can print to the clients windows printer thru the GDC via the START REPORT TO PRINTER syntax

https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/EnvironmentVariables.html#EV_DBPRINT





Title: Re: Genero on Windows XP and printing to windows printers
Post by: Danny D. on September 19, 2008, 10:57:02 am
Thanks for the tips!!!!


Title: Re: Genero on Windows XP and printing to windows printers
Post by: Danny D. on September 19, 2008, 12:45:49 pm
Problem!!

I've set DBPRINT=FGLSERVER.
But now every line is printed on a new page.
Any idea??

Thanks,
Danny