Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sybase DataWindow PS - How to create... in a distribution setup file

1,595 views
Skip to first unread message

Enrico Fuoti

unread,
Aug 27, 2008, 2:58:17 PM8/27/08
to
Hi, I'm trying to include gostscript installation with my setup executable.
Everything works fine, but PDF is not generated if Sybase DataWindow PS
printer is not present.
this can be done manually using the files in the drivers directory, but i
would like to include creation within the setup file..
SaveAs(ls_file , PDF!, true) should create the printer automatically but i
guess it doesn't work...
Any suggestion???
Thankss

Jerry Siegel [TeamSybase]

unread,
Aug 27, 2008, 4:27:09 PM8/27/08
to
If you include the whole Drivers folder in the installation AND the user has
authority to add a printer, the driver should be installed the first time
the user does a SaveAs (pdf!)

"Enrico Fuoti" <efu...@hotmail.com> wrote in message
news:48b5a3c9$1@forums-1-dub...

Arnd Schmidt

unread,
Aug 27, 2008, 6:11:22 PM8/27/08
to
If you have a setup, that is running with admin privileges,
just install the "Sybase Datawindow PS" printer druing setup.

It's worth to try something like:

rundll32.exe printui.dll, PrintUIEntry /q /if /f .\ADIST5.INF /b "Sybase DataWindow PS" /m "Acrobat Distiller" /r "FILE:"

hth

Arnd

Enrico Fuoti

unread,
Aug 28, 2008, 6:32:49 AM8/28/08
to
Thank you very much Arnd, It workd perfectly! :-)


"Arnd Schmidt" <arnd.s...@gmx.de> ha scritto nel messaggio
news:qdkbb4tqbsj3m7bjk...@4ax.com...

Chris Pollach

unread,
Aug 28, 2008, 7:54:34 AM8/28/08
to
Arnd;

Have you tried this on Vista?

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com


"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:qdkbb4tqbsj3m7bjk...@4ax.com...

Ganesh

unread,
Aug 28, 2008, 12:20:07 PM8/28/08
to
Thanks a lot Arnd, this is what I was expecting to happen when we use the
SAVEAS for PDF for first time when the code runs, unfortunately for some
reason it doesn't, but during our product installation we could able to add
your suggested way of installing it and that should resolve our problem.
Thanks.

"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:qdkbb4tqbsj3m7bjk...@4ax.com...

Enrico Fuoti

unread,
Aug 28, 2008, 12:54:56 PM8/28/08
to
Not yet,
I'll do and let you know!


"Chris Pollach" <cpol...@travel-net.com> ha scritto nel messaggio
news:48b691fa$1@forums-1-dub...

Arnd Schmidt

unread,
Aug 28, 2008, 6:44:52 PM8/28/08
to
As Chris remarked, this old ADIST5.INF and it's ddls were not made for "Vista".

So should use an other postscript printer driver for Vista.

My experience is that the quality of the ADIST5.INF drivers is really poor,
so that I am using a "HP Laserjet" Driver.

Just remember:
You need a printer named "Sybase Datawindow PS" that print to FILE:
and produces Postscript, that can be processed by ghostscript.

Chris wrote down a description to install a printer driver that is included in
GS 8.63.

DO install a PS printer as follows:
a) Open "Printers" section in Vista (Control Panel=>Printers)
b) Use RHMB in the ListView area of the Printers dialog and choose
"Run as Administrator => Add Printer"
(see attached)
c) Choose "Add Local Printer"
d) Select "File" as the Port
e) For the "driver" select "Have Disk"
f) Select "Browse" and navigate to where you installed GS 8.63
g) ** Select the .INF from GS's install location => "LIB" folder =>
"GhostPDF.inf"! **
h) Click OK
I) Accept "GhostScript PDF" as the print driver.
j) Change the printer name to "Sybase DataWindow PS" when prompted.


I am sure you can also built a setup script for this one ;-)

Arnd

Arnd Schmidt

unread,
Aug 28, 2008, 6:59:19 PM8/28/08
to
Unfortunately: No :-(

I read your Info about the printer driver, that is included in gs.

On XP you can install the driver with a commandline like this:

cd gs???\lib

rundll32.exe printui.dll, PrintUIEntry /q /if /f .\ghostpdf.inf /b "Sybase DataWindow PS" /m "Ghostscript PDF" /r "FILE:"

I do not know if this runs on Vista - Chris, can you try this ?

Arnd

0 new messages