VB Crystal Report >> VB 6 and OCX Control

by Dib » Fri, 13 May 2005 01:24:18 GMT

Hi,

When the User try to Print a 200 page Report (First) and another User is
Printing a different document from a different PC (Second), the Crystal
Report will stop Printing, Prints the other User document, then the Crystal
Reports starts Printing again starting from page 1.


Any ideas why ?

Thanks
Dib




Similar Threads

1. OCX Control in VB.Net Missing Methods - VB.Net

2. problems calling ActiveX control inside VB OCX from ASP

I seem to have run into two documented bugs whose workarounds are
incompatible. What I have is an OCX written in VB 6 that has a few classes
in it. Many of the methods of the OCX are used by ASP, and so far have
worked fine.

I recently added a COM object reference to the DLL which consists of an SMTP
client dll that is wrapped up in dual interface activeX control (written in
VC++ 6).

When I try to create an instance of this new control, the compiler
complains.

Dim smtpClient As myClass.myClient
Set smtpClient = New SEACOMSMTPLib.SeaSMTPObj

When I try to compile this, I get an error on the first line of code that
accesses a method of the object:

Compiler error: Function or interface marked as restricted, or the function
uses an Automation type not supported in Visual Basic.

When I did a search on this message, I found a MSKB article that this may be
a known bug, with the workaround being to change the original declaration of
the object to be

Dim smtpClient As Object
Set smtpClient = New SEACOMSMTPLib.SeaSMTPObj

this compiles fine, and seems to work from within the OCX. However, when I
try to create this same object in ASP, I get an error

Error 438 : Object doesn't support this property or method

Doing a search on this error, I found another article on MSKB that documents
a bug in VB when using late binding. The solution being to use early
binding. Which was the original cause of all my problems.

Could this have anything to do with the data types in the interfaces, and
the messages are misleading? I was able to invoke all the methods of the
SMTP control from within the OCX and it works fine.

Thanks for any advice,

-Gary