Вниз
Скачать: CL | DM;

Помогите подключить Crystal Reports к   Найти похожие ветки 

← →
paul_k ©   (2003-11-06 11:15) [0]

Доброго дня.
В поставку Crystal 8.5 входит компонент CRPE32 для D5. Служит для вызова отчетов из приложения. Помогите , застрял в попытке подключить эту радость к D7.
нашел и применил следующую инструкцию
If your application or expert uses designtime information, you have to replace
uses DsgnIntf;
with
uses DesignIntf, DesignEditors;
But then you will run into an error message "Cannot find unit Proxies.pas"
Answer:
The solution is to add DesignIde.dcp to your list of required packages.

Но получил ряд сообщений об ошибке например
procedure TCrWinControlProperty.GetValues(Proc: TGetStrProc);
begin
{Add Form name to the list}
Proc(Designer.Name);
{Add other WinControls}
inherited GetValues(Proc);
end;

ERROR Undeclared identifier "Name"

как это победить?


← →
paul_k ©   (2003-11-06 15:21) [1]

Вроде победил переписав
procedure TCrWinControlProperty.GetValues(Proc: TGetStrProc);
begin
{Add Form name to the list}
Proc(Designer.Name);
{Add other WinControls}
inherited GetValues(Proc);
end;

как
procedure TCrWinControlProperty.GetValues(Proc: TGetStrProc);
begin
{Add Form name to the list}
Proc(Designer.Root.Name);
{Add other WinControls}
inherited GetValues(Proc);
end

и в процедуре
procedure TCrpeLogProperty.GetValues(Proc: TGetStrProc);
var
i: integer;
begin
for i := 0 to Designer.Form.ComponentCount - 1 do
begin
if Designer.Form.Components[i].ClassName = "TCrpeLog" then
Proc(Designer.Form.Components[i].Name);
end;
end;
заменил как
procedure TCrpeLogProperty.GetValues(Proc: TGetStrProc);
var
i: integer;
begin
for i := 0 to Designer.Root.ComponentCount - 1 do
begin
if Designer.Root.Components[i].ClassName = "TCrpeLog" then
Proc(Designer.Root.Components[i].Name);
end;
end;

Вродезаработала радысть но, от кто бы мне объяснил что я накурочил и на какие грабли наступлю?


← →
Doomin   (2003-11-10 13:32) [2]

на www.crystaldecisions.ru лежит vcl85


← →
paul_k ©   (2003-11-10 17:25) [3]

Спасибо за совет
вот только 2 мелочи:
1. www.crystaldecisions.ru - не существует
2. на www.crystaldecisions.com необходим ключ от лицензионного кристала.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.014 c
14-90110
Yuri Btr
2003-11-04 11:32
2003.11.27
Дата компиляции в файле


7-90150
LeNa19
2003-09-15 23:33
2003.11.27
копирование без нагрузки на систему


7-90137
nevalex
2003-08-30 09:03
2003.11.27
Как добавить свою кнопку в меню CTRL+ALT+DEL в 9x


14-90108
R
2003-11-04 06:15
2003.11.27
Миф или реальность!


8-90010
JohnJ
2003-07-30 01:17
2003.11.27
Небольшой и, должно быть, лёгкий вопросик по DelphiX




   Наверх