Click here to Skip to main content
15,906,626 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionEventLog problem ,,Vista Home Pin
Amr M. K.10-Sep-08 11:04
Amr M. K.10-Sep-08 11:04 
AnswerRe: EventLog problem ,,Vista Home Pin
Abhijit Jana10-Sep-08 18:51
professionalAbhijit Jana10-Sep-08 18:51 
GeneralRe: EventLog problem ,,Vista Home Pin
Amr M. K.11-Sep-08 1:22
Amr M. K.11-Sep-08 1:22 
Questionhow to check the username is already exist in a table...? Pin
asad_black10-Sep-08 9:34
asad_black10-Sep-08 9:34 
AnswerRe: how to check the username is already exist in a table...? Pin
Christian Graus10-Sep-08 9:45
protectorChristian Graus10-Sep-08 9:45 
AnswerRe: how to check the username is already exist in a table...? Pin
Pete O'Hanlon10-Sep-08 10:36
mvePete O'Hanlon10-Sep-08 10:36 
AnswerRe: how to check the username is already exist in a table...? Pin
naveedmazhar10-Sep-08 18:14
naveedmazhar10-Sep-08 18:14 
QuestionError loading WebForm.aspx Pin
Reality Strikes10-Sep-08 8:33
Reality Strikes10-Sep-08 8:33 
I have an ASP.NET applications (using VB.Net code) having 2 webforms and it loads couple of Crystal Reports each time depending upon selections.

my execution path is as follows :
http://localhost/webApps/PIN/WebForm2.aspx (it loads this page correctly)

"WebForm2.aspx" is having some selection criterias for the report to be loaded. But when this page loads I get an CrystalReportViewer message on top left corner of the page which is as follows:

CrystalReportViewer - CrystalReportViewer1<br />
Use ReportSource or DataBindings property to specify a report source.


Also, in "WebForm1.aspx", I've got the following - OdbcSelectCommand, OdbcDataAdapter, OdbcConnection. And when I click on the "Command Text" property of "OdbcSelectCommand" which is infact an SQL query, I get this error messsage too : " [S1000] [IBM] [Client Access Express ODBC Driver (32-bit)] Syntax error in Connection String"

This is the connection string that I'm using :

Me.OdbcConnection1.ConnectionString = "DSN=as400;UID=pcain;PWD=marugo"

Please see the code below to see how Crystal Report is loaded :

Protected WithEvents active_referral1 As Crystal_dataset.active_referral
Protected WithEvents As400ds1 As crystal_dataset.as400ds
 
Me.OdbcSelectCommand1.Connection = Me.OdbcConnection1
Me.OdbcConnection1.ConnectionString = "DSN=as400;UID=pcain;PWD=marugo"
 
OdbcDataAdapter1.Fill(As400ds1)
If Report_Type = 3 Then
      active_referral1.SetDataSource(As400ds1)
      active_referral1.DataDefinition.FormulaFields("unboundstring3").Text = "'" & Fac_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring4").Text = "'" & Race_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring5").Text = "'" & Rel_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring6").Text = "'" & Sex_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring7").Text = "'" & Ref_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring8").Text = "'" & Sub_Str & "'"
      active_referral1.DataDefinition.FormulaFields("unboundstring9").Text = "'" & Sub2_Str & "'"
 
If View_List = 1 Then
     CrystalReportViewer1.ReportSource = active_referral1
   ElseIf View_List = 2 Then
      MyExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
      MyExportRequestContext.ExportInfo = MyExportOptions
      MyStream = active_referral1.FormatEngine.ExportToStream(MyExportRequestContext)
      Response.ClearHeaders()
      Response.ClearContent()
      Response.ContentType = "application/pdf"
      Dim MyBuffer(MyStream.Length) As Byte
      MyStream.Read(MyBuffer, 0, CType(MyStream.Length, Integer))
      Response.BinaryWrite(MyBuffer)
      Response.End()
   End If
End If

Can anyone please give me any suggestions???Confused | :confused:

Thanks in anticipation.
Questionjavascript function call from user control's command button Pin
Neeraj Arora10-Sep-08 7:31
Neeraj Arora10-Sep-08 7:31 
AnswerRe: javascript function call from user control's command button Pin
Christian Graus10-Sep-08 8:07
protectorChristian Graus10-Sep-08 8:07 
GeneralRe: javascript function call from user control's command button Pin
Neeraj Arora10-Sep-08 8:15
Neeraj Arora10-Sep-08 8:15 
GeneralRe: javascript function call from user control's command button Pin
Christian Graus10-Sep-08 8:30
protectorChristian Graus10-Sep-08 8:30 
AnswerRe: javascript function call from user control's command button Pin
naveedmazhar10-Sep-08 18:24
naveedmazhar10-Sep-08 18:24 
QuestionChild Control Problem With Page_Load Pin
Brady Kelly10-Sep-08 7:10
Brady Kelly10-Sep-08 7:10 
QuestionHow can hide IE 7 vertical scrollbars? Pin
JUNEYT10-Sep-08 6:46
JUNEYT10-Sep-08 6:46 
AnswerRe: How can hide IE 7 vertical scrollbars? Pin
Christian Graus10-Sep-08 7:07
protectorChristian Graus10-Sep-08 7:07 
QuestionSend ArrayList to aspx page from Webservice Pin
huge_superman10-Sep-08 6:16
huge_superman10-Sep-08 6:16 
AnswerRe: Send ArrayList to aspx page from Webservice Pin
Christian Graus10-Sep-08 6:23
protectorChristian Graus10-Sep-08 6:23 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
SomeGuyThatIsMe10-Sep-08 7:47
SomeGuyThatIsMe10-Sep-08 7:47 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
Christian Graus10-Sep-08 8:06
protectorChristian Graus10-Sep-08 8:06 
JokeRe: Send ArrayList to aspx page from Webservice Pin
SomeGuyThatIsMe10-Sep-08 8:13
SomeGuyThatIsMe10-Sep-08 8:13 
AnswerRe: Send ArrayList to aspx page from Webservice Pin
Guffa10-Sep-08 20:39
Guffa10-Sep-08 20:39 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
huge_superman11-Sep-08 9:26
huge_superman11-Sep-08 9:26 
AnswerRe: Send ArrayList to aspx page from Webservice Pin
Anurag Sharma - Backoffice12-Sep-08 21:35
Anurag Sharma - Backoffice12-Sep-08 21:35 
Question[Message Deleted] Pin
Omar Gameel Salem10-Sep-08 5:46
professionalOmar Gameel Salem10-Sep-08 5:46 

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.