Solved

Limitation of old version?

Posted on 2001-09-04
6
181 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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