|
Hi friends
I am trying to use crystal report in asp.net1.1 . I am able to display report using crystal report viewer.
But the problem is when i am passing the parameters from the asp.net page.Its not showing any kind of errors, but its not showing the data also.So if someone can send me the code of setting the parameter in c# then it'll be very helpfull. I've done the same in windows application but on searching the net i found that its totally different for web.
thanks in advance.please do it fast.
bye
nauty
|
|
|
|
|
hi,
friends, u can create crystal report in windows application but i cann't,
i can not create a Dynamic Crystal report in windows application.
porblem:- i have a filtered DataView, but i can not see the result of the DataView's in Crystal Report. please help me.
|
|
|
|
|
Hi buddy
could u be more specfic what is the prob u r getting.
there are only two steps needed to show the report in windows.
CrViewerObject.ReportSource = reportObject;
CrViewerObject.Show();
But the problem might be you're not logging the report
CrystalDecisions.CrystalReports.Engine.Table tbcurrent;
CrystalDecisions.Shared.TableLogOnInfo tbln ;
foreach(tbcurrent in reportObject.Database.Tables)
{ tbln = tbcurrent.LogOnInfo
tbln.ConnectionInfo.ServerName = "server name" tbln.ConnectionInfo.DatabaseName = "database name"
tbln.ConnectionInfo.UserID = "user id"
tbln.ConnectionInfo.Password = "password"
tbcurrent.ApplyLogOnInfo(tbln);
}
Hope it'll now run.
nauty
|
|
|
|
|
I've created a custom control.
I've create a property that allow me in design mode to load an image.
I'm not able to save that image in resource file just as visual studio does when i try to load an image as background.
Who can help me?
|
|
|
|
|
you can add the image to imagelist control
and then can load the image from image list.
rahul
|
|
|
|
|
Hi,
Here I am sending sample application.
After creating new application. From resources.resx desing I added icon (AddResources->AddExistingFile). From resources.resx view code I changed
Resources\Alarm161.ico;System.Drawing.Icon to
Resource: Resources\Alarm161.ico;System.Drawing.Bitmap
Because I want to add bitmap to my Button.
From form desing I added one button.
In Button1_click(..) event I added this code
Code: System.Drawing.Bitmap bitmap1 = WindowsApplication1.Properties.Resources.Alarm161;
button1.Image = bitmap1;
Ravi
|
|
|
|
|
ok i know it, but the problem that it is manual. Visual Studio to set the background image for the panel doesn't make me to add the bitmap in resource with (AddResources->AddExistingFile), but just load it automaticaly.
So how can i do the same?
|
|
|
|
|
i am faceing a problem to write an problem in a file.
plz tips me, what i do?
|
|
|
|
|
huhh?
what exectly do you want?
|
|
|
|
|
i exectly want to write a class object to a file.( As like as in java :- ObjectInputStream and ObjectOutputStream to read and write object in a file )
|
|
|
|
|
well I don't know alot about those type of things but I can suggest you to read a little about serializing objects -> transfer objects to XML, and I can suggest you at tops to write the serialized object to a memory stream, and then crypt it, and then save it.
|
|
|
|
|
hi all,
my problem is that i want to create a exe which reads a perticular
mail id on perticular mail server.functionality of this exe is ike that
this exe will find the mail which r in mail box has read by user or not .
if yes then i want to get reading time and i also want to know how many times user read this mail an d i want to store all the information in database.
plz help me.
Nikesh
|
|
|
|
|
Hi guys,
I have two datagrids, one on top of the other, and I have removed the scrollbar from the bottom one.
Both datagrids are the same width (wider than the parent control) and I would like them to always line up so the question is..
How can I make the bottom datagrid always line up with the top datagrid when the top datagrid is moved by user editing or by scrollbar
Thanks in Advance
|
|
|
|
|
Anyone have any idea on how to do this?
Even if you have a method to do part of it.
ie. how to determine how far the "active" panel is scrolled over or... ?
Anyone?
|
|
|
|
|
hi,
I have a C#.NET(web) GridView template column set up this way:
As the ItemTemplate I have a label, lblSatus. As the EditItemTemplate I have
a DropDownList, ddlStatus. ddlStatus have a SQL database, as data
source, and is populated fine. I have set the AutoPostBack property of both
lblStatus and dllStatus to true.
What I need a solution for:
1) I want ddlStatus to have its SelectedValue property set to the value of
the Text property of lblStatus - when or before the user clicks the edit
button.
2) I want lblSatus to have its Text property set to the value of the
SelectedValue property of ddlStatus - when the user clicks the update button.
With or without using the SelectedIndexChanged event of ddlStatus, but I
suppose using this event is the way to go.
thank u for any help..
rita
-- modified at 3:12 Monday 22nd May, 2006
|
|
|
|
|
Head to the appropiate messageboard. You are looking ASP.NET, the C# message board is for everything else but ASP.NET.
|
|
|
|
|
i am using C#.NET web application,and so have posted it in C# message board as C# in (ASP.NET).
rita
-- modified at 3:20 Monday 22nd May, 2006
|
|
|
|
|
Regardless of the language you are using, your question is still ASP.NET based, and hence you should ask the question there, see the post below why, clearly he is getting wrong answers...
|
|
|
|
|
SqlDataSource1.ConnectionString = "urconnectionstring";<br />
SqlDataSource1.SelectCommand = "select data from you table";<br />
ddlStatus.DataSourceID = "SqlDatasource1";<br />
ddlStatus.DataTextField = "Description";<br />
ddlStatus.DataValueField = "ID";
on ddlStatus SelectedIndexChange event
lblStatus.Text = ddlStatus.SelectedItem.Text.ToString();
|
|
|
|
|
thanks for sparing time to post a reply.
But when i tried using
1) lblStatus.Text = ddlStatus.SelectedItem.Text.ToString();
inside ddlStatus SelectedIndexChange event,its giving an error saying that ddlStatus&lblStatus doesn't exist in current context.
I have used drowndown as below :
asp:TemplateField
EditItemTemplate
asp:DropDownList ID="ddl" runat="server" DataSourceID="SqlDataSource2" SelectedValue='<%# Eval("No_months") %>'
DataTextField="No_months" DataValueField="No_months" AutoPostBack="true" OnSelectedIndexChanged="ddl_SelectedIndexChanged" asp:DropDownList
EditItemTemplate
Used Label(below code)inside ItemTemplate tags.
asp:Label ID="lblStatus" runat="server" Text='<%# Bind("No_months") % asp:TemplateField
2)Even the selcted value isn't updated as i click UPDATE,instaed the same old value is getting highlighted.
rita
-- modified at 7:06 Tuesday 23rd May, 2006
|
|
|
|
|
hello
1) how do i create a textbox with the position x:20 and y:150 from code.
2) is there a function to read a specific row and a column from a table
example: read column 4 from row 3
10x
|
|
|
|
|
This ASP.NET? If so, head to the appropiate message board.
|
|
|
|
|
(1) Are you referring to WinForm or WebForm applications for item 1?
If you're using WinForms, then you should be able to do something like the following in the form's codebehind:
public AddTextBox(string id)<br />
{<br />
TextBox box = new TextBox();<br />
box.ID = id;<br />
box.Top = 150;<br />
box.Left = 20;<br />
this.Controls.Add(box);<br />
}
You can do something very similar to the above WinForm example with WebForms, but positioning will take slightly more attention, as will the timing of your control's addition to the form's control hierarchy.
(2) Are you referring to a DataTable? If so, then:
object value = dataTable.Rows[int rowIndex][string columnName]
from your example:
object value = dataTable.Rows[3][4];
...should do it. If you're talking about HTML tables, then it would depend on how the table was created. If you're doing it in code, then you should be able to walk the page's control hierarchy to get at it. If it's static HTML, javascript can do it, but it's kind of a long-winded answer unless you need it, and the question belongs in a different forum.
Good luck.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
-- modified at 2:19 Monday 22nd May, 2006
|
|
|
|
|
box.Top = 150;
box.Left = 20;
it dosen't work - 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'Top'
i'm using vs.2005 do i need to add something else?
|
|
|
|
|
You should be asking this question in the ASP.NET forum, thats why you are getting wrong answers.
|
|
|
|