eDocEngine VCL
Create documents and reports in 18 formats
Compatibility
Delphi C++Builder
PDFtoolkit VCL
Edit, enhance, secure, merge, split, view, print PDF and AcroForms documents
Compatibility
Delphi C++Builder
XtremePDFConverter VCL
Intelligently convert PDF to easily editable Word documents
Compatibility
Delphi 7/2005 RAD Studio 2007/2009/2010
PDFOne (for Java™)
Create, edit, view, print & enhance PDF documents and forms on Java™ platform
Compatibility
J2SE J2EE Windows Linux Mac (OS X)
PDFOne .NET
Powerful all-in-one PDF library for .NET
Compatibility
VS 2008 VS 2005 CLR 2.0
XtremeDocumentStudio .NET
Multi-format document-processing component suite for .NET developers
Compatibility
Visual Studio 2010/2012 Delphi Prism
Free PDF Reader
A free, fast and portable application for viewing, printing & converting PDF documents
Compatibility
Windows Linux Mac

Fixing The “A component named” [component name] “already exists” Error In Delphi

Hint: There is probably nothing wrong with [component name].
By V. Subhash

I spent the better part of today fixing a seemingly intractable problem in a Delphi project. The project compiled fine but refused to run. It raised an EcomponentError exception with the message “A component named btnClose already exists.”

The IDE showed nothing to be amiss. There was only one such button in the entire project group. I removed the button and the error turned its affections to another button.

I decided to give the code another look. The problem was with this line.

gtPDFEngine1 := gtPDFEngine1.Create(Nil);

It was sitting there snug as a bug in a rug. It should have been:

gtPDFEngine1 := TgtPDFEngine.Create(Nil);

Instead of creating the instance off the class name, I tried to use the instance name. I corrected my super silly mistake and there were no more run-time exceptions. This can happen if you share coding time between Visual Studio and Delphi. The autosuggest feature in Delphi 2010 brought up gtPDFEngine1 before TgtPDFEngine. Anyway, I wrote this writeup hoping it might be useful for someone.

---o0O0o---

Our Developer Tools
eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

XtremePDFConverter VCL

A Delphi/C++Builder component to intelligently convert PDF to user-friendly Word RTF documents.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers

PDFOne (for Java™)

A Java™ PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java™ applications.

XtremeFontEngine (for Java)

Java font engine to render glyphs from Type 1, Type 2 (CFF), and TrueType fonts

Our Office Productivity Applications
Free PDF Reader

A free, fast, and portable application for viewing, printing and converting PDF documents.

Privacy | Legal | Feedback | Newsletter | Resellers © 2002-2013 Gnostice Information Technologies Private Limited. All rights reserved.

This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows XP users are advised to use Microsoft ClearType Tuning for optimal experience. Also, please use the latest version of a standards-compliant browser such as Firefox, Opera, or Dragon (Chromium).