Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reports - Report to PDF support errors 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone,

I wanted to allow the user to print the reports in pdf format so I added the pdf support extension template from the global area of my application.

I used the default values (I think this may be where I went wrong). When I compiled the application it had errors that said "Cannot find class PDFReportGenerator". The help told me to include this global template. Can you tell me what else I need to do so it will recognize the global template?

Thanks.
Emad
 
Hi Emad,

First include the Global Extension and enable the output formats you want. In your report procedure, extensions will be automatically added to support these extensions. Also, Clarion sometimes has a problem generating so it's best you clear all the generated CLW/INC in the application folder and the generated OBJ,RSC,DBD files in the Clarion6\Obj32 or Clarion6\Obj32\Release folder. This will ensure a fresh regeneration of code and compilations. Also. TAKE A BACKUP FIRST of your application files.

Regards
 
Hi ShankarJ,

I tried the steps you suggested but still get the errors about %FixClassName.

Can I send you a screen dump of the errors? They come up as soon as I turn on report to pdf. It compiles ok only when "disable this output" is checked.

Thanks,
Emad
 
Hi Emad,

The Fix Class Name must be happening b'cos you do not have the PDF Report Generator classes (INC/CLW) in the Clarion6\LIBSRC directory. This is a template error and can be ignored by pressing "Continue". Do you have Clarion 6 EE or Clarion 6 PE? If you have PE you must have bought the Report generator as a seperate product. If so, when did you install it? Try copying the ABPRPDF.INC and ABPRPDF.CLW into the Clarion6\LIBSRC directory, go to the Global Properties --> Classes and run Refresh ABC Information. Re-compile & check.

Regards
 
Hi ShankarJ,

I have the Clarion 6 PE.

I also did a search for ABPRPDF.INC and ABPRPDF.CLW but those files do not exist on my computer.

Is the Report Generator the Report Writer software that was installed when I installed Clarion?

Thanks.

Emad
 
Hi Emad,

If you have PE, you should have bought the Report Output Generators from SV additionally. If you have not, then you do not have the Report to PDF functionality from an Application. The Report Writer is a seperate product as well as part of the IDE (at least for EE) which may have the PDF fuctionality built-in i.e. available for RW reports only. On my EE, to enable PDF functionality, I have to have a global extension called "Report to PDF - global" which automatically adds the "Report to PDF" extension to all my Report Procedures.

Regards
 
Hi ShankarJ,

In the professional version I have that as well. I was able to turn in on by clicking the globe icon and was able to select the extensions button where I could choose Report to PDF from the template list.

I did however except the default values without changing anything. Do I need to change anything on the setup screen for the template to stop the errors?

For now I may have to just install a program like primo to get the output into pdf.

Emad
 
Hi Emad,

That's wierd. How come you do not have the underlying classes.

Regards
 
Hi Emad,

Do you have the INVREP.app in the C:\Clarion6\Examples\ReportOutput folder? If yes, compile & check if it runs OK.

Regards
 
Hi ShankarJ,

I found the app and tried to compile it and I get the same errors.

Truly,

Emad
 
Hi Emad,

Try re-installing Clarion on a seperate machine and check if it is OK. Check for those files in the LIBSRC folder. I guess you have searched ALL THE DRIVES AND FOLDERS of your computer for the files in case you installed that in a wrong folder.

Also, the FixClass error will allow you to continue since it is a Template Error. What happens then?

Regards
 
Hi ShankarJ,

If I continue, it says: Illegal data type textreportgenerator, Field not found textreportgenerator, and no prototype available.

Truly,
Emad
 
Hi Emad,

The TEXTREPORTGENERATOR is the class in the ABPRTEXT.INC/CLW for text output generation from reports.

Have you checked your WHOLE HARD DISK for ABPR*.INC and ABPR*.CLW? If you have and not found the files, I would suggest a re-installation in a different machine to see if the files are copied. If not contact SV or your Clarion Distributor.

Regards
 
Hi ShankarJ,

The search finds ABPRNAME.INC, ABPRTARG.INC, ABPRXML.INC, ABPRNAME.CLW, ABPRTARG.CLW, and ABPRXML.CLW

When I have more time I will try to install the software on another machine.

Thanks for all the effort you have given to this issue.

Truly,
Emad
 
Hi Emad,

Where were these files found?

Exit the Clarion IDE and edit the C60PE.red in the \Clarion6\Bin folder to include this folder in the lines starting with *.CLW & *.INC. Restart you IDE and check.

Regards
 
Hi ShankarJ,

They were in \clarion6\libsrc

Thanks.

Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top