I've just moved to Office 2003 from Office 2000 and on my Access Form have an ActiveX Control that links to a Crystal Report and Prints from Access2003, but i am getting the error 'Microsoft Office Access Doesn't Support This ActiveX Control'.
I'm using Crystal Report 10. In Access 2000 i was using the ActiveX Plugin Object to print these reports.
Maybe if i explain what i'm trying to acheive you can point me in the right direction. Basically i have about 20 different letters set up as Crystal Reports. I open a recordset which has two fields OrderNo and LetterTemplate (LetterTemplate being what letter i need it to print).
It opens the required letter then passes the OrderNo as a parameter which the letter then print with this OrderNo on.
This is the code i have which works great in Access2000 with an ActiveX Plugin Object(CrystalReport1).
Do
Do While rst.EOF = False
With rst
StrOrderNo = rst![OrderNo]
strLetter = rst![TemplateRef]
CrystalReport1.ReportFileName = "C:\Path\" & strLetter & ".rpt"
CrystalReport1.ParameterFields(0) = "OrderNo;" & StrOrderNo & ";true;"
CrystalReport1.PrintReport
rst.MoveNext
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.