answersLogoWhite

0


Best Answer

is :

CrystalReport1.Reset CrystalReport1.ReportFileName="MyReport.rpt" CrystalReport1.Destination=(Printer) CrystalReport1.Action=6 CrystalReport1.DiscardSaveData=True

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you print reports by vb6 using Crystal Report?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

You wants to print a single record in crystal report using vb6 but you don't where and how you write query to retreive single from database?

In Crystal Reports, you can write the query directly in the report designer. In the "Database Expert" window, right-click on "Add Command" and write your SQL query to retrieve the single record. After defining the query, you can link it to your report elements to display the data accordingly. Using VB6, you can then call the Crystal Report Viewer to display the report with the single record retrieved from the database.


What is the advantage of using crystal reports?

1. Secure as End user cannot modifiy the data which is appear in the report if we use crystal report to show the report but in HTML, user can modify the report data 2. Report layout is not transparent, so that end user will not know about how we design the report. But in HTML, anybody can study the report layout and can copy the technology 3. Can export into different format like PDF, HTML, XML, etc., and many more...


How to get Crystal Report control in VB6?

What version of Crystal reports?Assumptions:If you have Crystal Reports installed on the development machine, then you will already have all the dll's required for your VB6 project.You're using Crystal Reports v8 or v8.5.You will name the crystal report object 'rpt'.Configuring the project:In your VB6 project, Select 'Project'->'Components' and check the checkbox for 'Crystal Report Control' and click 'OK'Open the 'Form' view for the form you are coding and drag the 'Crystal' control onto the form.Coding the project:You can now reference the 'Crystal' object from within your code. Take note of the name of the report object, or change it to something useful.Set the WindowTitle, Connect, ReportFileName and SQLQuery properties to values relevant to your setup.Optionally, you can set the following values: (DiscardSavedData [I recommend setting this to True as it speeds things up in most cases; in fact, I recommend saving your crystal files without any saved data in the first place.], ProgressDialog, and if you have Formulas in the report that you wish to pass in, you can do so using the Formulas(x) property.Once all properties are set, launch the report using the following code:"rpt.Action = 1"Sample code:rpt.WindowTitle = Me.Captionrpt.Connect = "[Insert ADO Connection String here]"rpt.ReportFileName = sReportsDirectory + "\SomeReport.rpt"rpt.DiscardSavedData = Truerpt.ProgressDialog = Truerpt.SQLQuery = "select field1, field2, field3 from tbl1 where field4 = 'Y'"rpt.Action = 1


How do you print form 16A using tally9?

To print Form 16A in Tally.ERP 9, go to Gateway of Tally > Display > Statutory Reports > TDS Reports > Form 16A. Select the relevant parameters like Financial Year, Quarter, and Deductee details, then click on E-File or Print option to generate and print Form 16A for the selected deductees.


How do you print using the Rollmaster software?

First you have to retrieve the data from the database by using the 'records view', 'Query' or 'report' menus. Then select print.


How are accident reports usually filed?

Accident reports are usually filed with the police. They will interview the person and fill in the accident report using those details. A separate report is filed with the insurance company.


How do you create a report using VB 6?

You can we the default support provided by vb or use other reporting tools like crystal reports. To use the default support select data report from components. To link the data report to database you will have to include a data environment component, ink the control to the database by selecting its properties and then link this data environment to the data report. You can call the data report the same way other forms are called.


What types of reports can be prepared using spreadsheet?

Almost any kind of report can be made with Excel if there are any numbers in it. So it could be things like financial reports, or statistics reports or scientific reports. Excel is very versatile and can be used for lots of things. So your report could include data and charts for example.


What types of reports can be prepared using spreadsheet software?

Almost any kind of report can be made with Excel if there are any numbers in it. So it could be things like financial reports, or statistics reports or scientific reports. Excel is very versatile and can be used for lots of things. So your report could include data and charts for example.


What is the definition for oral report?

oral report is a reports using the oral communication; being represented orally; presented in-action; reported in live Oral reports are presentations given by one or two of the group members who present a groups findings, conclusions, or proposals to other members of the group or to a larger audience.


Why is it better to print out information from a database using a report rather than just printing from a table?

With a report you can do other things, like get totals and group things, do calculations, put page headings, page numbers and many other things. All you can do with a table is just print the pure data.


Where can one get three credit reports?

Credit reports from the three major credit reporting agencies can be obtained by requesting this information. Everyone is entitled to one free copy of a credit report each year, and this can be requested by either contacting a local financial institution or using an online service such as Annual Credit Report.