Problems with blobs in reports
Posted in 2000
Topics: General Discussion
I have seen an example program in Informix's web to insert a logo in the page header of a report but It doesn't work. I need a library named <fglrep.h>. Could anyone tell me I can obtain it or if you have send to my e-mail address janyo@retemail.es. Thank you.
do copy paste... /*********************************************************************** **** * * INFORMIX SOFTWARE, INC. * * PROPRIETARY DATA * * THIS DOCUMENT CONTAINS TRADE SECRET DATA WHICH IS THE PROPERTY OF * INFORMIX SOFTWARE, INC. THIS DOCUMENT IS SUBMITTED TO RECIPIENT IN * CONFIDENCE. INFORMATION CONTAINED HEREIN MAY NOT BE USED, COPIED OR * DISCLOSED IN WHOLE OR IN PART EXCEPT AS PERMITTED BY WRITTEN AGREEMENT * SIGNED BY AN OFFICER OF INFORMIX SOFTWARE, INC. * * THIS MATERIAL IS ALSO COPYRIGHTED AS AN UNPUBLISHED WORK UNDER * SECTIONS 104 AND 408 OF TITLE 17 OF THE UNITED STATES CODE. * UNAUTHORIZED USE, COPYING OR OTHER REPRODUCTION IS PROHIBITED BY LAW. * * Title: fglrep.h * Sccsid: @(#)fglrep.h /main/development/3 05/15/95 20:11:38 * Description: * structs for 4gl reports * ************************************************************************ *** */ #ifndef FGLREP_H #define FGLREP_H struct aggdesc { short aggtype; /* see below */ short aggsort; long aggcount; }; typedef struct aggdesc aggdesc_t; /* * aggdesc_t.aggtype values */ #define AGGCOUNT 1 #define AGGPERC 2 #define AGGTOTAL 3 #define AGGAVG 4 #define AGGMAX 5 #define AGGMIN 6 struct sortdesc { char *s_dummy; short s_paramn; short s_order; short s_type; short s_len; short s_substrt; short s_aftgroup; short s_befgroup; }; typedef struct sortdesc sortdesc_t; #define SORTINC 8 /* sort table growth increment */ struct wwdesc { FILE *w_fp; /* input stream */ char *w_data; /* start of input data when not stream */ char *w_datap; /* next char to get */ char *w_buffer; /* output buffer */ struct value *w_stkptr; /* location in 4gl stack */ short w_type; /* SQLCHAR, SQLVCHAR, SQLTEXT */ short w_datasize; /* size in bytes of data */ short w_lmargin; /* width of left margin */ short w_rmargin; /* last col to print in */ #ifdef ASIAN unsigned long w_pbchar; /* 0 or pushed-back character */ #else short w_pbchar; /* 0 or pushed-back character */ #endif /* ASIAN */ short w_bufsize; /* size of w_buffer */ short w_wordlen; /* length of data in w_buffer */ short w_stkcntr; /* stack counter */ short w_state; /* see below */ short w_status; /* return value for 4gl status */ }; typedef struct wwdesc wwdesc_t; /* * wwdesc_t.w_state values */ #define PR_INIT 000 /* initial state */ #define PR_GET 001 /* get next word */ #define PR_PRINT 002 /* print word */ #define PR_NEWLINE 004 /* do newline code */ #define PR_HEADER 010 /* do page header code */ #define PR_DONE 020 /* finished printing variable */ #define PR_CNTRL 030 /* for the ^L problem */ struct repdesc { long rrecordnum; short pagenumber; short ln; short tmargin; short rmargin; short lmargin; short bmargin; short phlines; short fphlines; short colcount; short tot; short oktoinc; FILE *outfp; short oftype; /* 0 = stdout; 1 = file; 2 = pipe */ short plength; short ptlines; struct aggdesc *_paggdesc; struct value *_paggvals; struct sortdesc *p_sortdesc; char *phbuff; /* page header buffer */ unsigned phsz; /* page header buffer size */ unsigned phix; /* current location in page header buffer */ short gotoindx; short gotostk[6]; short needlmarg; short hdrstate; /* pghdr processing state, see below */ char topofpg; /* top of form character */ short ptexists; /* user defined page trailer exists */ }; typedef struct repdesc repdesc_t; /* * repdesc_t.hdrstate values */ #define P_NOPGHDR 0 /* no pghdr being processed */ #define P_EPHEVAL 1 /* early pghdr eval needed */ #define P_LPHEVAL 2 /* late pghdr eval needed */ #define P_PHFILL 3 /* pghdr being eval'ed and buffered */ #define P_BUFFULL 4 /* pghdr eval'ed and buffed, print pending */ /* * Report destinations */ #define P_DEFAULT 0 /* Default destination (SCREEN) */ #define P_PIPE 1 /* Report to PIPE -- unspecified mode */ #define P_PRINTER 2 /* Report to PRINTER */ #define P_SCREEN 3 /* Report to SCREEN */ #define P_FILE 4 /* Report to FILE */ #define P_PIPE_LINE 5 /* Report to PIPE IN LINE MODE */ #define P_PIPE_FORM 6 /* Report to PIPE IN FORM MODE */ #endif /* FGLREP_H */ This should solve your problem... In article <8nuio8$12rli4@SGI3651ef0.iddeo.es>, "Jose A'uot; <janyo@retemail.es> wrote: > I have seen an example program in Informix's web to insert a logo in the > page header of a report but It doesn't work. I need a library named > <fglrep.h>. > > Could anyone tell me I can obtain it or if you have send to my e-mail > address janyo@retemail.es. > > Thank you. > > In article <8nuio8$12rli4@SGI3651ef0.iddeo.es>, "Jose A'uot; <janyo@retemail.es> wrote: > I have seen an example program in Informix's web to insert a logo in the > page header of a report but It doesn't work. I need a library named > <fglrep.h>. > > Could anyone tell me I can obtain it or if you have send to my e-mail > address janyo@retemail.es. > > Thank you. > > Sent via Deja.com http://www.deja.com/ Before you buy.