|
hi all...I need help in crystal reports plzz....
I have to display a column from database horizontally and another column from database vertically....in the form of a chart...and in between the values selected have to be added n displayed...it seems 2 me very complex can somebody plz help me out...il be really obliged....
thanx in advance...
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
tanya2001 wrote: ...it seems 2 me very complex can somebody plz help me out...il be really obliged....
Use Crystal Report Chart Control. Without it, it's not possible to display the data in Crystal Report in such a manner.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
where can i find crystal reports chart control..m all new 2 this so can u plz explain me
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
Once you add the data source to your report, it will the enable the Crystal Report tool bar. In the tool bar click on the "Insert Chart" Icon. try to Google the Google for some info which will help you more than what anyone can do on a online disscusion.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
thanx a heap i got the chat but unable get values into it...its jst showing bars...if u can gimme ur email address il show d diagram format of what i want 2 display n what i have...can i plzzz?
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
It sounds like your initial problem is not with the crystal reports, but more that you don't know how to form the query to return the results.
It sounds like you are trying to PIVOT your table data - if you are using SQL 2005, then i'd recommend looking up the PIVOT command to see how this works.
Once you have your dataset (and presuming you have some idea how to use crystal reports), creating the chart shouldn't be too much trouble.
|
|
|
|
|
m using sql server 2000....n m all new 2 crystal reports n i hve been assigned this project...i rely dunno wat 2 do..
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
Have a google for some crystal report tutorials would probably be a good first move. It's hard to help you here if you can't help yourself a little bit...
|
|
|
|
|
Hello all,
I have developed a web application in ASP.Net using C# with login credentials.
I am getting following problem with it.....
I am logging in as user "abc" from one computer in network, its working fine. At the same time, i m logging in as different user say "xyz" on other computer. After this, when i refreshes my "abc" user's page it shows all contents of "xyz" user and hence automatically expires session of "abc".
I am not getting where the actual problem is, please anyone of u can help me with this?
Pravin
|
|
|
|
|
pavya_Cool wrote: when i refreshes my "abc" user's page it shows all contents of "xyz" user and hence automatically expires session of "abc".
Are you using Application variable to store the user details? And what is the authentication mode here?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi I am using session variable here...and authentication mode is forms.
Pravin
|
|
|
|
|
Can you post an example of the code you are using to store the details of the current user?
|
|
|
|
|
private void BtnGo_Click(object sender, System.EventArgs e)
{
Label1.Visible=false;
bool persistcookie=true;
if(ValidateUser(TextBox1.Text,TextBox2.Text))
{
//string globalstrConn="Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=iMedia;Integrated Security=SSPI;";
Session["UserName"]=TextBox1.Text;
//This will store the username of the user in this session variable
// We can retrieve this username on different pages by using following code.
// string str=Convert.ToString(Session["UserName"]);
FormsAuthenticationTicket tkt;
string cookiestr;
HttpCookie ck;
tkt=new FormsAuthenticationTicket(1,TextBox1.Text,System.DateTime.Now,System.DateTime.Now.AddMinutes(Convert.ToInt32(ConfigurationSettings.AppSettings["timeout"])),persistcookie,"Your Custom Date");
cookiestr=FormsAuthentication.Encrypt(tkt);
ck=new HttpCookie(FormsAuthentication.FormsCookieName,cookiestr);
if(persistcookie)
ck.Expires =tkt.Expiration;
ck.Path =FormsAuthentication.FormsCookiePath;
Response.Cookies.Add(ck);
string strredirect;
strredirect=Request["ReturnUrl"];
if(strredirect==null)
strredirect="login.aspx";
Response.Redirect(ConfigurationSettings.AppSettings["defaultpage"],true);
}
else
{
Label1.Text="Invalid Credentials!";
Label1.Visible=true;
// Response.Redirect("login.aspx",true);
}
}
Please someone help me.
Pravin
|
|
|
|
|
|
i am not getting responce there.... thats why i posted here ... do u have any problem????
Pravin
|
|
|
|
|
pavya_Cool wrote: am not getting responce there.... thats why i posted here ... do u have any problem????
Yes. These posts aren't under your name. Have you created multiple identities? More importantly, if these are all you, you shouldn't repost in an attempt to get the post to the top. This is a volunteer only forum, and people will get around to your post when they can.
|
|
|
|
|
Pete O`Hanlon wrote: Have you created multiple identities?
In the study of Psychology, there is a concept called 'Multiple Identity Disorder'. A quick Google search shows this:
http://skepdic.com/mpd.html[^]
Perhaps, is he suffering from that?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i m using nested grid and in child grid i m using EmptyDataTemplate in which i hv one htmlanchor tag which is redirecting to another page when that child grid is empty and i m passing parentgridrow id as query string parameter to that anchor tag.
here i m giving u code what i m using.
Protected Sub ParentGrid_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles ParentGrid.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim s As SqlDataSource = CType(e.Row.FindControl("SqlDataSource1"), SqlDataSource)
s.SelectParameters(0).DefaultValue = e.Row.Cells(0).Text
CType(e.Row.FindControl("ChildGrid"), GridView).DataBind()
End If
End Sub
Protected Sub grdProduct_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)
Dim grd As GridView = CType(sender, GridView)
Dim grdr As New GridViewRow(-1, -1, DataControlRowType.EmptyDataRow , DataControlRowState.Normal)
Dim cell As New TableCell
cell.ColumnSpan = 2
cell.Width = Unit.Percentage(100)
Response.Write(CType(sender, GridView).Rows.Count)
End Sub
it is giving output like shown below:
0
7
0
2
0
15
where 7 indicates 7 row of 1st child grid (child grid in 1st row of parent grid)
same way 2 and 15 also
means in my parent grid there r only 3 row (means there r only 3 child grid would created)
then why i m geting other three zeros. can any one explain me the execution flow for nested grid.
Thanx in advance,
|
|
|
|
|
MaruBindiya wrote: Protected Sub grdProduct_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)
This Event is firing twice. That is before DataBinding (Empty Grid), and after DataBinding (With Data).
|
|
|
|
|
in my application document.referrer is shown empty string ???
|
|
|
|
|
From MSDN Library:
"This property returns a value only when the user reaches the current page through a link from the previous page. Otherwise, document.referrer returns an empty string; it also returns an empty string when the link is from a secure site."
Also, some antivirus/firewall applications remove the referrer information from requests, so you can't rely on it always be there.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Exactly...Thanks For Reply
|
|
|
|
|
hi,
i have a checkbocxcolumn in the datagrid..
i need to select only one checkbox..and if he selects more than one checkbox...it has to show a message that .."select only one checkbox"
how can i do this in asp.net
|
|
|
|
|
1) declare one variable in Javascript
2) set it as 0 by default.
3) write the javascript code
- if chk is checked then
if thisvariable less than 1 then set this variable to 1
else thisvariable is 1 then show the alert("select only one checkbox")
else // chk is unchecked
set thisvariable to 1
4) Add this code in onclick (client-side) event of checkedbox
|
|
|
|
|
beklo.com/rameshgoudd wrote: i have a checkbocxcolumn in the datagrid..
i need to select only one checkbox..and if he selects more than one checkbox...it has to show a message that .."select only one checkbox"
Why don't you have a radio button in that column?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|