Error for installation PrintPreview 4.76 into delphi6.

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Error for installation PrintPreview 4.76 into delphi6.

Postby Rachan.c » November 22nd, 2007, 12:26 pm

I'm very sory if this question is a very silly for you.

I try to install PrintPreview V 4.76 into Delphi6 ent. The error message "Program or Unit 'Preview.pas' recursively uses itself."

Could you please help me to solve this problem.

Thank you for advance.
Rachan.c
Member
Member
 
Posts: 4
Joined: November 22nd, 2007, 12:14 pm

Postby Kambiz » November 22nd, 2007, 8:08 pm

How did you install the component?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby Rachan.c » November 27th, 2007, 8:16 am

I'm sory for reply too late.

I click Component--> New Component and select install into New Package
then browse to Preview.pas and type package.dpk in Package Name then click OK.
Delphi will try to compile the source file then the above Error Message return on Line 1. The program highlight on the first line of source program.

thank you.
Attachments
Pic1.jpg
Pic1.jpg (105.83 KiB) Viewed 1651 times
Rachan.c
Member
Member
 
Posts: 4
Joined: November 22nd, 2007, 12:14 pm

Postby Kambiz » November 27th, 2007, 2:22 pm

Instead of Component --> New Component select Component --> Install Component from the menu.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby Rachan.c » November 28th, 2007, 7:08 am

Thank you very much Kambiz. I'm very appreciate for your help.
I tried to do as you advise but it still not successful. It seem success for the first time (I use TScollBox(Form) to be Ancestor Type) but "Preview.dcu" may invalid (size only 3kb). When I try to compile my project. Delphi always asks for "Preview.pas".

After I try to do many methods. I found the procedure that help me to install this component successfully as the below.

1. Open Delphi Program.
2. Select "Component--> Install Component".
3. Select tab "Into new Package".
4. Browse to "Preview.pas" for Unit File Name.
5. Type package name as you want with ".dpk" extension which other than "Preview.dpk"
(For this example I type "PackageXX.dpk".)
6. Click "OK" to start Compiling and installation.
7. Click "Yes" to confirm replacing.
8. Click "OK" to finish Installation.
At this time, "Delphi Area" pallette willappear in the Delphi Pallette.
The "PreviewXX.dcu" (3k size) and "Preview.dcu" (118k size) will be created.
in the same folder of Preview.pas. The "Preview.bpl" and "Preview.dcp" will be
created in "\\$Delphi Folder\Projects\Bpl" folder.
9. Close Delphi Program.
10. Copy "Preview.dcu" (118k size) and "Preview.res" to "$Delphi Folder\Bin" folder.
11. Rename "PreviewXX.bpl" to "Preview.bpl" and "PreviewXX.dcp" to "Preview.dcp".
12. Open Delphi Program again. The 2 Error Messages will be displayed. Don't worry, just
click "Yes" untill the program opened.
13. Click "Component-->Install Package".
14. Select line of Design Package "PreviewXX.bpl" then click remove. Click "Yes" to confirm.
15. Click "Add" button and browse to "Preview.bpl" in \\$Delphi Folder\Projects\Bpl" folder.
16. At this point you can use "Preview" smoothly.

I think this procedure may help other person who encounter the same problem.

Thank you again.
Rachan.c
Rachan.c
Member
Member
 
Posts: 4
Joined: November 22nd, 2007, 12:14 pm

Postby Rachan.c » November 28th, 2007, 7:12 am

I'm sorry. I type invalid for the 5th step. Please use the follwing item instead.

5. Type package name as you want with ".dpk" extension which other than "Preview.dpk"
(For this example I type "PreviewXX.dpk".)
Rachan.c
Member
Member
 
Posts: 4
Joined: November 22nd, 2007, 12:14 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests