Release date: 04/01/2004
If you are not planning to export reports as pictures, you can download a special version of XFRXLIB.FLL (http://www.eqeus.com/files/xfrxlib-nogdiplus.zip), which doesn't require the two dlls mentioned above.
Syntax:
XFRXWriter::SavePicture(tcFilename, tcType, tnFrom [, tnTo [, tnBpp [, tnJPEGQuality [, tnThumbnailWidth [, tnThumbnailHeight] ] ] ] ])
Parameters:
tcFilename
The name of the file to be generated.
tcType
The format of the picture to be saved. Currently supported options are: BMP, GIF, JPEG, PNG, TIFF.
tnFrom
The page number to be saved. If TIFF format is being saved, the parameter specifies the first page to be saved.
tnTo
If TIFF format is being saved, the parameter specifies the last page to be saved. Ignored otherwise.
tnBpp
Bits per pixel. Currently supported values are 16 or 24.
tnJPEGQuality
Specifies the JPEG compression quality. The range is from 1 - the lowest quality to 100 - the best quality. The default value is 0 - default quality. Ignored for other output types.
tnThumbnailWidth
The width of the output picture in pixels.
tnThumbnailHeight
The height of the output picture in pixels.
If this sounds complicated, please have a look at the example, it is actually quite simple:
loSession=EVALUATE([xfrx("XFRX#INIT")]) * * nothing is sent as the file name, so only a memory cursor is created * lnRetVal =loSession.SetParams(,,,,,,"XFF") If lnRetVal = 0 loSession.ProcessReport("invoices") local loXFF * * the finalize method returns a XFFWriter object reference, * which will used to save the pictures * loXFF = loSession.finalize() LOCAL lnI, lnJpegQuality lnJpegQuality = 80 * * loXFF.pagecount contains the number of pages if the report that * was just generated * * we are now going to save all pages one by one as separate jpeg pictures * FOR lnI = 1 TO loXFF.pagecount loXFF.savePicture("page"+ALLTRIM(STR(lnI))+".jpg","jpg",lnI,lnI,24,lnJpegQuality) ENDFOR MESSAGEBOX("Pictures saved.") Endif
XFRX report previewer localization
which will create the XFRXLIB_DE class library.
Translate the two dialog classes in the class library.Example: this.cntXFRX.setLanguage("DE")