|
OK.
Hope you also added reference ("Add Reference..") to your project. Check again
Harini
|
|
|
|
|
Just now I added it by right clicking on my project solution explorer and select "Add reference" and selected
* CrystalDecisions.CrystalReports.Engine.dll
* CrystalDecisions.ReportSource.dll
* CrystalDecisions.Shared.dll
and clicked ok.
In the code behind i added these classes.
Even now i am unable to get the Report name in the codebehind snippet.
Plz let me know your thoughts.
Jagadeesh
|
|
|
|
|
Can you tell me how can i confirm that these references were added to my project.
I couldn't see any difference even after adding these references.
Jagadeesh
|
|
|
|
|
For an update, Just now I googled and found that We must get the "References node" after added the references.
But I am not getting it.
Plz let me know how to get it.
Jagadeesh
|
|
|
|
|
Hi
Added references should appear in the project explorer under 'References'.
If not add again.
Harini
|
|
|
|
|
I tried and tried, it again and again. Still its not displaying.
Plz help.
Jagadeesh
|
|
|
|
|
|
Harini,
I'm following these steps correctly.
When i binded a simple report using CrystalReportViewer control (with out using any dataset), It worked fine. (There is no code in the codebehind except the CrystalReportViewer bind property) It showed the values correctly.
When I tryed the same with the dataset in the code behind i am unable to get the reportname in the snippet.
CrystalReport1 crReportDocument = new CrystalReport1(); --> i'm not getting this report name here.
I am a fresher i don't know much about this. Is it compulsory to get the references node in the solution explorer to get the report name in the code behind.
Plz let me know your thoughts.
Jagadeesh
|
|
|
|
|
Harini,
I am able to view them (Resource node and its content) in my windows applications but Unable to view them in Web applications.
-Jagadeesh
|
|
|
|
|
I AM USING THE FOLLOWING CODE TO EXPORT THE GRID VIEW DATA INTO EXCEL.IT IS WORKING FINE WITHOUT PAGING THE GRIDVIEW .WHEN I DO THE PAGING IT GIVES THE FOLLOWING ERROR AT THE FOLLOWING LINE
frm.RenderControl(hw)
ERROR IS -: RegisterForEventValidation can only be called during Render();
CODE-:
Dim tw As New StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Dim frm As HtmlForm = New HtmlForm()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment;filename=Filename.xls")
Response.Charset = ""
EnableViewState = False
Controls.Add(frm)
frm.Controls.Add(GridView1)
frm.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
CAN I EXPORT THE GRID VIEW DATA TO EXCEL BY GRIDVIEW PAGING.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Hi Sonia,
You better try this code using vb.net
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=RegisteredUsers.xls")
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter()
Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(oStringWriter)
oHtmlTextWriter.WriteLine("Registered Users: ")
'Me.ClearControls(dgGrid)
DataGrid1.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.End()
Regards,
Niranjan
|
|
|
|
|
Hi niranjan,
I also tried ur code in my datagrid...,
Its working when the paging is false...,
If paging is true...,
Ur code giving error on this line:
dgrdmain.RenderControl(oHtmlTextWriter)
So see sonia question properly...,
In paging only she is also getting error...,
Regards,
Magi
|
|
|
|
|
Hi Magi,
Take 1 more datagrid and hide that one and write the following code.i have done this in my project it work's fine. write the following code in Export button. Let's try this one hope u will get result.
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click
Dim da3 As New SqlDataAdapter("Select * from Registration order by sno desc", cn)
Dim ds3 As New DataSet
da3.Fill(ds3, "Registration")
DataGrid1.DataSource = ds3.Tables(0).DefaultView
DataGrid1.DataBind()
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=RegisteredUsers.xls")
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter()
Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(oStringWriter)
oHtmlTextWriter.WriteLine("Registered Users: ")
'Me.ClearControls(dgGrid)
DataGrid1.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.End()
End Sub
Regards,
Niranjan
|
|
|
|
|
Hello Sonia,
Did you solve your problem or not?
Thanks & Regards,
Niranjan
|
|
|
|
|
hi all,
I am creating a web application using vb.net.i have a timer control which needs to check for some condition and based on that a pop window has to be opened.
My problem is the pop window is created but its not opening.is there a way to open the popup window without reloading the page.
Thanks in advance
Regards
Anuradha
|
|
|
|
|
function popup()
{
window.open('samplepage.htm');
}
setTimeout('popup()',10000);
We Can Do Anything, If We Want It
|
|
|
|
|
hi abolfazl,
Thanks for your reply. But i am using a System.timers.timer control because i need to do some functionality in the server side.after performing the code, i need to enable this popup.
So how can i go about this?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Hi all,
right now i am working on ASP & asp.Net project.
actually we are navigating the user from asp site(existing site) to asp.net site (right now we are developing this site).
i have to retrieve the asp page values in asp.net page. i tried this using query string, cookie, and session (also server variables), but nothing is working for me. when i displayed this values in the asp page using response.write statement, it is displaying correct values...but when i am trieying to retrieve these values in asp.net page, it is returning empty.
please i appreciate if anyone let me know how to work on this........
advanced thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i add one HTML text box and one asp Label in the page and when i run this page in the local machine i can see these two controls and when i host this page and open this page i could see only HTML control the asp label control is missing in that page.what should i do for displaying the asp controls.in the property visible=true,enableviewstate=true,runat=server these all are correct for the asp control.
|
|
|
|
|
How you hosted it in the Server?
|
|
|
|
|
Hi Venkatesh,
I Hosted through CUTE FTP.I hosted one simple html page also that is working .If we are adding any asp controls in the page then it will not work,it will not show that controls in the page,but it will show HTML controls.when i take the source of the page i could see the controls value eg : Label.text="welcome" but it will not show in the page.
|
|
|
|
|
No Kurian,
I asked whether you published the website and then hosted it or simply hosted it into the server.
|
|
|
|
|
Does your hosting company host ASP.NET applications. The .NET Framework is required on your hosting server for the controls to be rendered. Your ASP.NET Application will not work on a server that does not have .NET Framework. Hope that helps.
|
|
|
|
|
Dear sirs:
I have a Web Form with an SqlDataSource with a simple select statement, and a GridView control that is tied to it. There is a ComboBox and a Submit button as well. When a selection is made (the first time) in the combo box and then the submit button is clicked, the Selecting Event for the SqlDataSource fires.
However, on subsequent "submits" I cannot get the event to fire again. What do I need to do to get this event to fire; thus letting me know that new data is being fetched from the database?
Thank you,
R. Hyland
|
|
|
|
|
1. What is your query?
2. Attach the code you are using
|
|
|
|