Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working in ArcGIS 9.3.1 and I try to write code for creating a crystal report and work with it in VBA, but I recieved an error when the program arrived at this line of code:

Dim pProj As CRAXDDRT.Application
Dim pReport As CRAXDDRT.Report

The error is "User defined type not defined". Why does the program give this error? Please help me with this problem.

share|improve this question
    
" I am working in ArcGIS 9.3.1 and I try to write code for creating a crystal report and work with it in VBA, but I recieved an error when the program arrived at this line of code: " Please i have a similar problem. I'm looking for a code that permit to create with vba a report in arcgis and print it. Help me please. –  Kramo Dec 6 '10 at 15:34
add comment

1 Answer 1

up vote 5 down vote accepted

This is one of the most common errors in ArcGIS/VBA environment, and is usually due to missing references. Go to Tools --> references and check for any MISSING ones. Most likely your missing references to Crystal components. Tick them on and re-try.

http://support.esri.com/en/knowledgebase/techarticles/detail/29069

share|improve this answer
    
tanks alot for answer.Problem is solvate.Again tank you. –  Nima Aug 20 '10 at 8:58
    
If my answer was the one that helped you solve it, can you give me the credit. If it was not, can you let every1 know how you solved it? :) –  Simon Aug 20 '10 at 9:08
    
I agree, @Nima please hit the green tick on @Simons answer if it helped you. –  Nathan W Aug 20 '10 at 9:17
    
Simon, I click on the green tick.that is rigth? or I should do other work? –  Nima Aug 20 '10 at 9:46
    
Yes, green tick if your happy your answer is resolved. –  Simon Aug 20 '10 at 9:56
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.