Reply

alice johnson replied to Kaleem Khan at 05-Jul-08 01:20
create Crystal Report in Visual Basic 6.0 ,Follow this steps:
1. Start a new project in Visual Basic 6.0.

2. Go to the Project Menu, choose More Active X Components, Data

Environment. This takes you into the data environment.

3. Go to properties of the DataEnvironment1 and change the name to

Xtremedb.

4. Underneath the Xtremedb environment there is another icon that says

Connection1, right mouse click and pick properties. This pulls up the data

link properties dialog box.

5. Choose Microsoft OLE DB Provider for ODBC Drivers.

6. Click on the next button.

7. Choose your datasource from the dropdown box that is labeled use data

source name.

8. Press the OK button.

9. Right mouse click on the Connection1 again but this time choose Add

Command.

10. Right mouse click on the Command1 icon and pick properties.

11. For Command Name Type Employee, keep the Connection as the same.

12. For Source of Data:

Database Object – choose table

Object Name – Employee

Choose OK

Create the report

1. Open the Crystal Reports designer.

2. Under the File Menu, New, Custom Report, SQL/ODBC. This will pull up

the Logonserver dialog box.

3. Pick Active Data [ADO], then OK.

4. This pulls up the Select Data Source dialog box, select your datasource

from the dropdown box then press the Next button

5. Fill in your UserName and Password if needed then press the Finish button

6. The Choose SQL table dialog box comes up, pick ADO

7. This allows you to insert the fields on to the report.

8. Once you have placed all of the desired fields on the report, Save it as

Adotest.rpt

Hope this will help you
You can also refer thsi LInks for reference
http://training.nic.in/courseware/VB%20Files/presentations/Reports.pdf
http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_ocx_dataenvir.pdf?recDnlReq=Record&dnlPath=cr_ocx_dataenvir.pdf

Happy coding takecare



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  crystal report viewer - Kaleem Khan  05-Jul-08 09:23 9:23:48 AM
      Reply - alice johnson  05-Jul-08 12:10 12:10:58 PM
      Reply - alice johnson  05-Jul-08 12:13 12:13:51 PM
      hi - alice johnson  05-Jul-08 12:17 12:17:10 PM
      Reply - alice johnson  05-Jul-08 01:20 1:20:45 PM
      tutorial - sundar k  05-Jul-08 01:31 1:31:45 PM
View Posts

promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   


"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class