Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Genero on Windows XP and printing to windows printers  (Read 12465 times)
Danny D.
Posts: 9


« 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
Stefan S.
Posts: 90


« Reply #1 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



* PikPrtr.zip (3.07 KB - downloaded 1082 times.)
Reuben B.
Four Js
Posts: 1119


« Reply #2 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




Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Danny D.
Posts: 9


« Reply #3 on: September 19, 2008, 10:57:02 am »

Thanks for the tips!!!!
Danny D.
Posts: 9


« Reply #4 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines