PDA

Click to See Complete Forum and Search --> : member or data member not found/Crystal Reports


Greyhound Gourmet
Apr 15th, 2008, 11:14 AM
hi :)

have been programming in VB6 for 8+ years but haven't touched it for a few years so I'm a little rusty. Here's the situation:

I got a new (work) laptop, installed VB6, then Crystal Reports 7 then did the upgrade to 8.0. When I try to compile my program now, I get the following error: Compile Error: Member or data member not found. and it's referring to the area in red, below:

strPrintSelect = "{Invoice.Invoice_Number} = '" & gstrHoldOrdInvClaimNumber & "'"
crptSingleInvoicePrint.Database.Tables (1).SetLogOnInfo "SandGSQL_ODBC", "SandGSQL", "sa", "****"
crptSingleInvoicePrint.RecordSelectionFormula = strPrintSelect
crptSingleInvoicePrint.PaperOrientation = crLandscape
crptSingleInvoicePrint.PrinterSetup frmDocFlowDisplay.hWnd


this program has been being used for years so I know the code is okay. I don't have any "missing" references in the project, and when I go to the Object Browser, the PrinterSetup method of Report (under CRAXDRT) is there -- but it does NOT come up as an option after I type the "." after "crptSingleInvoicePrint" in the code area.

Please help! I'm pulling my hair out! :( Thanks in advance for your help! :)

(ps. I did look here but nothing I found helped :()

randem
Apr 15th, 2008, 03:47 PM
You say you upgraded to version 8 from version 7. The first thing I would do is check to see if that function/method has been deemed obsolete or changed to something else in the newer version. Check the CR site...

Hack
Apr 16th, 2008, 06:52 AM
Moved to Reporting