I've worked with Crystal Reports in the past. I cannot remember source code which I wrote but I can give you the guide lines:
1. You should use COM to manipulate Crystal Reports.
2. Go in Crystal Reports folders and search all files with .TLB or .OCX extension and with Ole Object Viewer Tool open them to see the type info (the IDL file)
3. Make a Visual C++ project (you don't have to use MFC)
4. Import all COM servers you want from Crystal Reports:
6. Declare smart-pointers for usefull Crystal Reports COM objects (I remember the Application object). You can inspect the associated .TLH file in Debug folder to find helpful information.
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.