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

sample how to create PDF's from centura reports ...

45 views
Skip to first unread message

Martin Jussel [centurahosting]

unread,
Nov 29, 2000, 3:00:00 AM11/29/00
to
Hi,

See a sample how to create PDF's from *standard* centura reports.
It's very useful for web applications but can be used for win
applications also.

http://www.CENTURAHOSTING.com/Samples/ (Reports Sample)

I you want to use it locally, you have to install Acrobat PDF Writer.

Martin


Oliver Otto

unread,
Dec 12, 2000, 9:57:22 AM12/12/00
to
Hallo Martin,

thanks for this usefool tool! Some questions:
I had to make some modifications to 'reporttopdf.apl' to make
'webreports.app' run on the following system: Windows 98 SE + Centura
2000 + Acrobat 4.0. Function __2 (if I understand it correctly) uses
'Call CStructCopyFromFarMem( CStructGetLong( DRIVER_INFO_2, 16 ), sData,
256 )' to get the name of the PDFWriter Driver. The result is
'PDFWRITR.DRV'. Later on in the lines where the Acrobat Configuration is
set with 'SalSetProfileString' the function tries to add the
configuration to 'PDFWRITR.DRV' and doesn't succeed. If I replace
'PDFWRITR.DRV' with 'PDFWRITR.INI' the PFD-Files are created
successfully.
When I try to run the application und Windows NT 4.0 + Centura 2000 +
Acrobat 4.0 Function __2 from 'reporttopdf.apl' identifies 'PDFKD.DLL'
as the name of the PDFWriter Driver. The main problem is that the DLL
gets destroyed if the application uses SalSetProfileString on
'PDFKD.DLL'. But this time the replacement of 'PDFKD.DLL' with
'PDFKD.INI' doesn't result in a PDF-File. What am I doing wrong or could
you tell me the name of the files which have to be used by
SalSetProfileString under Windows 9x and Windows NT?

Thanks in advance,

Ingo Viehmeister

Ingo Viehmeister

unread,
Dec 13, 2000, 11:05:56 AM12/13/00
to
Hallo Martin!

My main problem is that if I try to run your application under Windows
NT every time a PDF-File is created a "Save As" dialog box opens and the
suggested filename is the name of the report-file (e.g. _island.pdf and
not something like 2000-12-13-16.04.00.720000.pdf). I checked the web
for an answer and I guess it lies in the fact that Acrobat PDFWriter
3.02 and earlier versions for Windows NT used the __pdf.ini file for the
preferences whereas later versions of PDFWriter 3.02 for Windows NT use
the Registry to store the preferences. (See also
http://www.adobe.com/support/techdocs/66ca.htm) Could you please tell me
which version of PDFWriter you are using and under which OS (Windows 9x
vs. NT) webreports.app is running?

Ingo Viehmeister

Martin Jussel [centurahosting]

unread,
Dec 14, 2000, 3:10:55 AM12/14/00
to
Servus Ingo,

On my local network I'm using Acrobat PDF Writer 3.03 (the update is
available on adobe's website). The combination PDF Writer
3.03/ReportToPDF Library is successfully tested with IIS (NT Server),
PWS and Apache (NT Workstation) ...

Martin


"Ingo Viehmeister" <viehm...@gmx.de> schrieb im Newsbeitrag
news:3A379E64...@gmx.de...

Martin Jussel [centurahosting]

unread,
Dec 18, 2000, 6:15:08 AM12/18/00
to
Servus Otto,

I changed the source. Now it supports Acrobat PDFWriter 3.03 & 4.x.
Go to the samples site (http://www.CENTURAHOSTING.com/Samples/) and
download it again.

Martin


"Oliver Otto" <oo...@genese.de> schrieb im Newsbeitrag
news:3A363CD2...@gmx.de...

Martin Jussel [centurahosting]

unread,
Dec 18, 2000, 6:19:36 AM12/18/00
to
... which supports PDF Writer 3.x and 4.x ....

Martin


"Martin Jussel [centurahosting]" <martin...@centurahosting.com>
schrieb im Newsbeitrag news:INlVDBeW...@talkto.centurasoft.com...

Ingo Viehmeister

unread,
Dec 18, 2000, 6:44:01 AM12/18/00
to
Moin Martin,

thanks for the new version. Now it works fine on our configuration.

Ingo Viehmeister

0 new messages