Solved

Limitation of old version?

Posted on 2001-09-04
6
184 Views
Last Modified: 2008-02-26
Hi,

I have installed crystal report for visual basic product 4.6.1.0 which is included at visual studio 6.0 enterpise edition!

What is the main difference of this old version when comparing with the most update version!

Any limitation exist!

Further, anyone can teach me how to use the crystal report control 4.6 at VB environment.

I have created a rpt file. But I don't know how to view this file after placing the crystal report control 4.6 at the dialog! Please give me a simple example in doing this!

Thank you very much for your help!


0
Comment
Question by:ee_lcpaa
  • 4
6 Comments
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6453607
ee_lcpa

I would suggest you upgrade to a current version of CR before beginning development work.  The version you have contains an OCX control and an API interface which are fairly limited in runtime control.  Many of these limitations have been corrected in the new version, currently version 8.5

As to learning version 4.6, I would suggest you take a look at some of the older PAQs in this topic area where you will find numerous code examples for calling the OCX from visual basic.

Examine the properties of your Crystal Report control.  You will find a ReportName property (or something similar) you need to set with the full path name of your .RPT file.  You will preview the report by setting the .ACTION method to the desired value.

DRRYAN3
0
 

Author Comment

by:ee_lcpaa
ID: 6453609
Hi All,

I have another problem in mind now.

Can I create the rpt file at runtime at VB environment by using the free version of Crystal Report Control 4.6?

I hope I can read a new set of data from db at runtime and then generate a new report.
After generating this report, I can have a preview at my application and allow the user to save this report to their harddisk if they satifsy the report.

Please tell me whether I can implement like this!
If yes, pls teach me!

Thank you very much!



0
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 125 total points
ID: 6453741
If you mean, can I create a new .RPT file from code at runtime, you cannot create reports using the version of Crystal Reports which is included with VB 6.

If you mean, can I include a .RPT file with my application and allow the user to preview it, without changing the appearance of the report, at runtime, then yes, you can do that.

See the following links for additional information regarding writing VB code using the OCX control:

http://support.crystaldecisions.com/communityCS/TechnicalPapers/apps_ocx.pdf.asp
http://support.crystaldecisions.com/communityCS/TechnicalPapers/apps_vb_api.pdf.asp
http://support.crystaldecisions.com/communityCS/TechnicalPapers/OCX_Formulas_property.doc
http://support.crystaldecisions.com/communityCS/TechnicalPapers/errors_ocx.pdf.asp

Basically, you place the CrystalReport control on your form and place the following code on a button:

CrystalReport1.ReportFileName = "C:\MYREPORT.RPT"
CrystalReport1.Action = 1

Where C:\MYREPORT.RPT is replaced with the actual name of your report.

I still recommend that you upgrade.

DRRYAN3

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6537567
This question has been open for some time now.  Please return and either
1.  Accept an answer
2.  Post a comment stating that you need more information
3.  Ask Community Support to delete the question if you feel the information here has no value to you or anyone else.
4.  Ask Community Support to PAQ the question because your question was not answered but you feel the information here may be of some value to others.

Community Support is here:  http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt and you can leave a message by posting a zero point question.  Be sure to reference the question ID, found in the Address bar of your browser.

Thanks
DRRYAN3
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6870538
This question has been recommended for closure at http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20277616.

Points to DRRYAN3

DRRYAN3
0
 

Expert Comment

by:Tuvok
ID: 6870733
Force accept DRRYAN3 comment.

Tuvok,
Moderator @ Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Converting int to currency 5 31
crystal report check box and wingdings font 7 168
Crystal Reports  Formula to Command 4 73
Pictures In Crystal 10 41
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now