Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Frx to pdf
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00978768
Message ID:
00979396
Vues:
10
Hi Plinio,

you can in deed have the FRXs inside youe exe. What I usually do, is create a table with two fields, 'filename' (c12) and 'contents' (memo binary). Needless to say, the 'filename' contains the file name, and 'contents' contains the file itself. This is my procedure to populate the file REPORTS
lnFile=ADIR(laDummy,'*.FR*')
IF lnFile=0
  MESSAGEBOX('Error, no reports')
  RETURN .f.
ELSE 
  CREATE TABLE REPORTS (filename c(20), contents m NOCPTRANS )
  FOR lnCounter = 1 TO lnFile
    APPEND BLANK 
    REPLACE filename WITH laDummy(lnCounter,1)
    APPEND MEMO contents FROM (laDummy(lnCounter,1)) 
  ENDFOR 
  MESSAGEBOX('Finished without errors')
  RETURN .t.
ENDIF
The file reports.dbf is included into my exe. To run a report:
USE REPORTS
SCAN FOR LIKE('THISREPORT.FR*',FILENAME)
  COPY MEMO CONTENTS TO (FILENAME) 
ENDSCAN
USE
SELECT REPORTMASTER && The table to report from
REPORT FORM THISREPORT 
ERASE THISREPORT.*
>Frx2Any it's a good products but you have to include .FRXs file on clients PCs. I've been trying for a long time to make it work with reports included in the .exe file.
>
>
>>Hi Irwan
>>
>>FRX2Any (from www.frx2any.com) works very well with just few lines of code.
>>
>>Shafid
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform