Click here to Skip to main content
15,903,388 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionArrayList "Columns" Pin
Brendan Vogt7-Jun-07 21:27
Brendan Vogt7-Jun-07 21:27 
AnswerRe: ArrayList "Columns" Pin
Manas Bhardwaj8-Jun-07 0:33
professionalManas Bhardwaj8-Jun-07 0:33 
AnswerRe: ArrayList "Columns" Pin
Christian Graus8-Jun-07 0:59
protectorChristian Graus8-Jun-07 0:59 
QuestionCreating Reports in Excel thru VB 2005 Pin
v1i9n6o7d7-Jun-07 20:58
v1i9n6o7d7-Jun-07 20:58 
AnswerRe: Creating Reports in Excel thru VB 2005 Pin
Johan Hakkesteegt7-Jun-07 21:20
Johan Hakkesteegt7-Jun-07 21:20 
QuestionRe: Creating Reports in Excel thru VB 2005 [modified] Pin
v1i9n6o7d8-Jun-07 1:11
v1i9n6o7d8-Jun-07 1:11 
AnswerRe: Creating Reports in Excel thru VB 2005 Pin
Johan Hakkesteegt8-Jun-07 2:00
Johan Hakkesteegt8-Jun-07 2:00 
QuestionAbsolute path information is required Pin
Manoj Bandgar7-Jun-07 20:55
Manoj Bandgar7-Jun-07 20:55 
I have migrated an application from vs 2003 to vs 2005.Everything works fine,but when i create the installation setup and deploy the application on some other machine and try to generate crystal reports i get an error "Absolute Path information required".Also when i installed the same setup on the machine on which visual studio is installed the reports are generated.

I have added all the merge modules.All the pre-requisite to the application.The database bounded to other forms is getting accessed.One more thing i would like to tell you is that even when i create new repot and new report viewer control on new form,create setup and instal the setup same problem is there.Everything works fine except reports.I'm really bugged up with error.

Let me tell u what all things i tried.

1.Adding all the 4 merge modules.

2.Changing the installation path.

3.Given TableLogOnInfo

4.Giving the absolute path during report load.for ex. crpt1.load

(Application.startuppath & "\Reports\abc.rpt")

5.Tried Changing the registry programfilesdir .

6.Create New report in the same application with new form containing new

reportviewer control.

7. I tried to modify the overridable property ResourceName abc.vb (crystal report

file).But then i get error "Unable to locat resource i the manifest"



Following is the code on the Reportviewer Form



Friend Sub UserList(ByVal strSql As String, ByVal Headers As String)

Try

Dim objRptUserLog As CrystalDecisions.CrystalReports.Engine.ReportDocument

objRptUserLog =new CrystalDecisions.CrystalReports.Engine.ReportDocument

objRptUserLog.load(Application.startuppath & "\Reports\rptUserlog.rpt"))



Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table

For Each tbCurrent In objRptUserLog.Database.Tables

Dim oLIInfo As CrystalDecisions.Shared.TableLogOnInfo

oLIInfo = tbCurrent.LogOnInfo

With oLIInfo.ConnectionInfo

.ServerName = DatabaseConnection.GetServerName 'SETTING SERVER NAME ,UID,PWD,DATABASE

.UserID = DatabaseConnection.GetUserID

.Password = DatabaseConnection.GetPassword

.DatabaseName = DatabaseConnection.GetDatabaseName

End With

tbCurrent.ApplyLogOnInfo(oLIInfo)

Next tbCurrent

CR.DisplayToolbar = True



Dim crFormulas As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions = Nothing

Dim crFormulaTextField3 As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition

Dim strDate As String

crFormulas = objRptUserLog.DataDefinition.FormulaFields

crFormulaTextField3 = crFormulas.Item("Header")

strDate = Headers

crFormulaTextField3.Text = "'" & strDate & "'"

CR.SelectionFormula = strSql

CR.ReportSource = objRptUserLog

Catch ex As Exception

MessageBox.Show(ex.Message)

End Try

End Sub



If anyone has come across this problem before and solved it please help me.I tried searching on different sites but did not get any help as such.Please help its very urgent.




Thanks & Regards,
Manoj Bandgar
AnswerRe: Absolute path information is required Pin
Manoj Bandgar10-Jun-07 21:23
Manoj Bandgar10-Jun-07 21:23 
AnswerRe: Absolute path information is required Pin
Manoj Bandgar12-Jun-07 21:55
Manoj Bandgar12-Jun-07 21:55 
QuestionGenerate code from REGistry file Pin
Mickey017-Jun-07 19:49
Mickey017-Jun-07 19:49 
AnswerRe: Generate code from REGistry file Pin
Dave Kreskowiak8-Jun-07 3:46
mveDave Kreskowiak8-Jun-07 3:46 
Questionsending sms from PC using VB.Net Pin
saraswathy1437-Jun-07 19:02
saraswathy1437-Jun-07 19:02 
AnswerRe: sending sms from PC using VB.Net Pin
MatrixCoder7-Jun-07 20:01
MatrixCoder7-Jun-07 20:01 
GeneralRe: sending sms from PC using VB.Net Pin
saraswathy14310-Jun-07 21:42
saraswathy14310-Jun-07 21:42 
QuestionCould not load file or assembly Error Plz Help Pin
sabby20067-Jun-07 18:52
sabby20067-Jun-07 18:52 
AnswerRe: Could not load file or assembly Error Plz Help Pin
Dave Kreskowiak8-Jun-07 3:48
mveDave Kreskowiak8-Jun-07 3:48 
GeneralRe: Could not load file or assembly Error Plz Help Pin
sabby20068-Jun-07 18:21
sabby20068-Jun-07 18:21 
GeneralRe: Could not load file or assembly Error Plz Help Pin
Dave Kreskowiak10-Jun-07 10:07
mveDave Kreskowiak10-Jun-07 10:07 
GeneralRe: Could not load file or assembly Error Plz Help Pin
sabby200610-Jun-07 23:13
sabby200610-Jun-07 23:13 
QuestionBrowser Pin
Socheat.Net7-Jun-07 15:31
Socheat.Net7-Jun-07 15:31 
AnswerRe: Browser Pin
MatrixCoder7-Jun-07 15:50
MatrixCoder7-Jun-07 15:50 
GeneralRe: Browser Pin
Socheat.Net7-Jun-07 16:02
Socheat.Net7-Jun-07 16:02 
GeneralRe: Browser Pin
MatrixCoder7-Jun-07 18:12
MatrixCoder7-Jun-07 18:12 
GeneralRe: Browser Pin
Socheat.Net7-Jun-07 21:08
Socheat.Net7-Jun-07 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.