Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build something to handle similar reports
Message
From
19/12/2008 09:04:34
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
19/12/2008 08:45:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01368780
Message ID:
01368805
Views:
9
>>We want to have a single report form handle a variety of similar reports. They are all somewhat related in functionality, but differ as to the tables. The table structures are also similar, but not always exactly the same. Any ideas on how to handle this best?
>
>I created a generic report handler many years ago, which has saved me many hours later. It takes two parameters, namely the name of the FRX and the output (screen, printer, email, file). The second parameter is analyzed by the program,. If it's empty, output goes to the screen. If it's a legal URL, output goes to a file and is converted into the format which matches the file extension. If the URL does not have any extension, it must be a printer, and is sent to it. The same happens if the second parameter is a single word, like LPT1 or Myprinter. And last, if it's a legal email address, it's sent to this address as a PDF attachment. If all fails, the program reports -1 to indicate a failure.
>
>Needless to say, the report takes its data from the currently selected table or cursor.

I'm not sure that is what I was looking for. I'm looking for ideas on how to handle the different, but similar, data prior to printing the report. Your stuff seems interesting, but maybe I missed something as it doesn't seem to address what I asked.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform