Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 29th, 2007, 02:12 AM
Authorized User
 
Join Date: Nov 2006
Location: Mandi, Himachal Pradesh, India.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to akhilhp
Default Deploying a software with crystal Reports

Dear Friends I am using crystal reports in my project. The code used to view the report is as follows:

            Dim repstr As String = Application.StartupPath & "\Actwise.rpt"
            Dim ds As New DataSet
            Dim da As New SqlDataAdapter(SQLSTR, con)
            Dim b As Integer = da.Fill(ds)
            Dim rep1 As New Engine.ReportDocument

                rep1.Load(repstr)
                rep1.SetDataSource(ds.Tables(0))
                ActWise.ReportSource = rep1
                ActWise.DisplayGroupTree = False
Now when I am testing it the project is working fine, but when I publish the software and try to install it on other clients it is giving error " Load Report Failed". I have checked thorough ly and found that the .rpt file (in the above case actwise.rpt) file is not being copied with the setup. If I manually copy the file to the application destination in the documents and settings folder then the report is being shown.

So my question is what should I do so that after publishing the report is automatically copied to the client where I run the setup file?

Regards!

Akhilesh
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying Crystal Reports in Dot Net Project krati ASP.NET 1.0 and 1.1 Professional 0 November 25th, 2006 06:32 AM
Deploying Crystal Reports in for Win App (URGENT) melvik Crystal Reports 9 January 12th, 2005 12:36 AM
Deploying Crystal Reports with VB 6.0 Pravs VB How-To 7 December 20th, 2004 11:24 AM
Deploying crystal Reports with an Application naved Crystal Reports 1 October 25th, 2004 10:05 AM
deploying crystal reports coolabhi Crystal Reports 1 April 21st, 2004 10:49 AM



All times are GMT -4. The time now is 03:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.