Save 
Join IIUG
 for   
 

Informix News
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter


[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Classics Forum

RE: What are you using to produce nice looking rep

Posted By: Joel W Schumacher
Date: Tuesday, 9 September 2008, at 5:02 p.m.

In Response To: What are you using to produce nice looking reports (ROGER BURTON)

We also integrate forms printing on HP PCL printers with 4GL, though we
generally incorporate C routines to print the forms.

We've done it a few different ways.

1) Learn the PCL and call a C function to "paint" the form (or call the
macro once it's programmed). Then, your REPORT fills in the form. Very
similar to what you do now, but we're actually coding the look of the
form.

2) Use 4GL to gather the data, then do all of the form "painting" and
filling out of the form in C. Call C functions to pass the data you
want to print. This tends to make the "prettiest" reports because you
can use all kinds of extra features like bold, different font sizes,
etc., to print your data.

3) Sometimes we have to deal with new forms from the US Post Office.
What I've done recently to reduce the hand-coding of replicating the
form is to take the PDF file from the post office and bring it into
Paint Shop Pro (I use ver 8.1). Then, I can save it as a graphic like a
BMP. You can either code C routines to read/print the graphic. Or,
I've developed routines to read the graphic and convert it to a
ready-to-print PCL file. When I need to print it, I just read the PCL
file and send it out to the printer. Of course I still have to
rearrange the "fill-in-the-blanks" pieces, which can either be in 4GL or
C.

#3 has really reduced the time for us to incorporate new forms. And the
post office changes them pretty regularly. It beats having to hand-code
PCL to "try" to replicate the appearance of the original. But, because
you're essentially printing a full-page graphic instead of drawing a few
lines and putting some labels on the page, it can require more printer
memory and take longer to send the initial graphic (which, the first
time you send it, you'd program it as a macro, then use the macro
thereafter).

I know it's pretty kludgy, but if we can get a form as an image file or
as a PDF (and convert it to an image), we can print it pretty easily.
Portable Bitmap and BMP are fairly easy formats to decode, but they are
large. That's why I wrote the code to convert them to PCL, which is a
compressed form. It makes for smaller distribution files.

I also know there are PCL to PDF converters available for various
platforms because I looked into that once. Instead of outputting to
your printer, output to a file and then run this program to convert it
to PDF. Or maybe you can open a pipe right to the converter.

But beware and try to obtain a demo or a money-back guarantee first
because I've downloaded trial versions that don't do such a good job at
rendering the PCL.

-----Original Message-----
From: classics-bounces@iiug.org [mailto:classics-bounces@iiug.org] On
Behalf Of ROGER BURTON
Sent: Tuesday, September 09, 2008 2:35 PM
To: classics@iiug.org
Subject: What are you using to produce nice looking reports [2916]

Hello all,=20

I'm VERY NEW to this game - forgive me if I've slotted this in the wrong

place, but it seemed the most appropriate option of those presented to
me. I'm=20
sure I'll hear about it if there is a better place.=20

I have used Informix-4GL (exclusively) to run the bulk of our operations
and I=20
would like to continue to follow this path. Until recently, the
production of=20
"documents" (Invoices, POs, Statements ...) was accomplished by running
an=20
Informix Report and invoking a "form" (created with a third-party bit of

software that was stored as a "macro" on an HP printer) as an overlay.
The=20
static portion (a.k.a. the pretty portion) of the document being the
Macro,=20
and the data (the dynamic portion) being supplied by the Informix
Report. It=20
looks respectable; monochrome and a little plain, but respectable.=20

This has served us well for many years. However, this solution is
becoming=20
more and more difficult to support as the original (forms generation)
software=20
is becoming more and more antiquated [it came on 5 1/4" floppies - just
to=20
give you an idea]. Enough is enough, I said, time to re-evaluate. I
further=20
speculated that this (the IIUG site) would be a good mechanism to poll
what=20
others (YOU) are doing if you have a similar situation in YOUR
environment.=20
I'd like to know how others (you) are resolving this?=20

Resolving the aforementioned would be great, but if your solution also=20
encompasses the conditional creation of a PDF file that can be e-mailed,
that=20
would make for a more complete solution. (And I'd look like a superstar
around=20
here.)=20

I am grateful for ALL input and I thank you in advance.=20

************************************************************************
*******=20
Forum Note: Use "Reply" to post a response in the discussion forum.=20

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete the material from any
computer.

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Classics Forum is maintained by Administrator with WebBBS 5.12.