|
i am using crystal reports in asp.net. i have designed one tool bar as like crystal report.in that i have placed export button,print button..etc.
For print option I have used
dim cr as new ReportDocument
cr.PrintToPrinter(1, False, 1, 2)
The above is working when it is in debugg mode...the same print option is not working after publishing the website.
Can anyone help me????
Thanks in advance..
Regards...
Selva Shankar
modified on Monday, May 11, 2009 6:59 AM
|
|
|
|
|
SelvaShankar wrote: .the same print option is not working after publishing the website
What do you mean by not working? Getting some error?
|
|
|
|
|
no..the page is just refreshing....thats it
Thanks for your response...
Regards...
Selva Shankar
|
|
|
|
|
Hi all.
Am developing a web application. In that i placed a treeview.
Now My requirement is :
When i click on any node it should expand and already expanded nodes should be collapsed.
Please help me.
|
|
|
|
|
Hi,
You have to write code like this,
Protected Sub TvwPages_SelectedNodeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TvwPages.SelectedNodeChanged
If TvwPages.SelectedNode.Text = "Screens" Then
If TvwPages.Nodes.Count > 1 Then
TvwPages.Nodes(1).Collapse() 'Collapse Reports
End If
TvwPages.Nodes(0).Expand() 'Expand Screens
ElseIf TvwPages.SelectedNode.Text = "Reports" Then
If TvwPages.Nodes.Count > 1 Then
TvwPages.Nodes(0).Collapse() 'Collapse Screens
End If
TvwPages.Nodes(1).Expand() 'Expand Reports
End If
End Sub
If you have more than one Tree View item,
Use this line ,( PUT in a For Loop) till List Count
TvwPages.Nodes(i).Collapse()
Ramesh Sambari
|
|
|
|
|
Hi
this is good for selecting child nodes. because "SelectedNodeChanged" event hires when child node is selected. But I want when Parent node is selected it should be expanded and if any expanded nodes are there they should be collapsed.
Plz help me
Its urgent
|
|
|
|
|
Hi,
Try Using this....
Protected Sub TvwPages_TreeNodeExpanded(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.TreeNodeEventArgs) Handles TvwPages.TreeNodeExpanded
If e.Node.Text = "Screens" And TvwPages.Nodes.Count > 1 Then
TvwPages.Nodes(1).Collapse()
End If
If e.Node.Text = "Reports" And TvwPages.Nodes.Count > 1 Then
TvwPages.Nodes(0).Collapse()
End If
End Sub
and..one thing...never say URGENT. It is completely irrelevent to others.
Ramesh Sambari
|
|
|
|
|
when user logged in i set its LoginBit and didnt allow same user to log in again but if user closes without signing out and he returns then how can i found that it is the same user who was actually using the session. he must not receive error that user is already signed in
|
|
|
|
|
Try any one,
1 - Handle session_end and rest the DB flag. session_end fires even user closes the browser(not immediately).
1 - Handle the window closing event using JS, do AJAX call to reset the DB flag.
2 - Run a DB job which will check the records frequently and resets the flag.
|
|
|
|
|
HI.
hi i devloping a web site , and i have two colums in data one is indate and other is outdate . the both column in varchar type and i have typecasting in date format . but when my update column is --- means not update in database . i got error . so for that i want to decode function . pls help me how i to decode in sql query.
|
|
|
|
|
sanju05 wrote: the both column in varchar type
Poor way of keeping dates. Why don't you make the column type as Date?
sanju05 wrote: but when my update column is --- means not update in database . i got error
What do you mean? What error are you getting?
|
|
|
|
|
HOW TO DECODE SQL QUERY IN ASP.NET .
|
|
|
|
|
sanju05 wrote: HOW TO DECODE SQL QUERY IN ASP.NET .
Read this[^]. Specially, point 6.
|
|
|
|
|
I have multiple reports . I want to change report and datasource
of reportviewer at runtime to show another report. I try this
but showing error. If anybody knows please help.
sachin
|
|
|
|
|
check the below link
really a good article for your problem..
http://www.aspfree.com/c/a/ASP.NET/Binding-Data-to-the-ReportViewer-Control-Dynamically-in-ASPNET-20
One person's data is another person's program.
--J.Walia
|
|
|
|
|
i need what is the difference between div and Form
and what is the good usage example
thanks in advance
|
|
|
|
|
Whats your exact question ? where do you want to use form or div ?
|
|
|
|
|
If I create the web page inside a folder on the root, ... Create image folder in root file only... Now i run directly on subfolder page... i am not get the image from image folder....
Can you help to me
|
|
|
|
|
Good Morning nithydurai
Can we see the image reference code ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i create the reseller account...
i wil give one aspx page to reseller.....
image folder have in root directory
how to access the image folder on reseller .aspx page...
Image1.ImageUrl = Page.ResolveUrl("~/image/02.gif");
how to share a web.config file in different path..
|
|
|
|
|
You are really Confusing me, now you talk about account. I thought your only Problem is that you have an image folder that contains images and you have a sub folder that has a page and it does not show an image on the page, and i requested a part where you reference the image.
Please Please Explain Clearly exactly what is your problem , because i don't have a problem on my side.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi All
I have a web site. This web site connected multiple databases. After user(1st user) successfully logged in then we received database name, user id, and password and create a connection string and store the value in class file as a static property. Its work all over the website and class file. But my problem is that when another user (2nd User) login then class property is changed with (2nd User) connection string. An user(1st user) data changed with 2nd User data.
That means 1st user going connect with 2nd User database.
There I any way to recover from this problem, I don’t use different way. Because my project almost completed. Please help me out
Thanks
Rajesh
|
|
|
|
|
|
In class file session is not working properly.....
|
|
|
|
|