0

and sorry for not exactly a programming question, but if anyone can help i thought this is the place after googling around and finding nothing.

I have to cope with a crappy (presumably vb6) .net application for printing all sorts of reports. After installing it prints Ok, but if i print using another program, this one stops printing (halts on a modal blocks telling me it is 'forming a report').

From what i gathered with exploring the .exe and the hopeless support (apparently no-one else has this problem, they cannot understand what's wrong), it uses actrpt2.dll which seems to something called ActiveReports2. If i register this dll with regsvr32 the program WILL print, and after printing from any other program i need to register the dll again before printing works on this one.

So i made a quick .bat hack for it.. But the programmer in me cannot understand why this stuff with the dll keeps happening (well ok, it's windows...) - if anyone knows what is happening, and how could it be fixed, please tell me, i would appreciate it :)

4

1 回答 1

2

可能您的“另一个程序”正在覆盖 actrpt2.dll 注册,例如通过注册它存储在其 exe 文件旁边的旧版本的 ActiveReports。

最简单的“修复”是使用非管理员权限运行两个应用程序(或只是“另一个程序”),以便它根本无法注册(或损坏)COM 组件。

于 2010-12-23T10:17:54.227 回答