|
Hi All,
I am using VS05 + Windows Forms + CrystalReport .I want to display coloured alternating rows in a report.
For that i have use below procedure
Right Click Details Section -> Chose Colour tab -> Use formula ie. if RecordNumber mod 2 = 0 then red else blue
This will give me a result but the total detail section is get coloured.
I just want to give colour to detail section which contains field from database and not the whole detail
section.
How can i do this?
Thanks in advance.
|
|
|
|
|
AFAIK this cannot be done directly to details section. One way to achieve this is to add a formula field to the report (no text) and make that as wide as the report. Then send it to back and use your formula on that field. This should get an alternating back color.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hi Thanks for the reply.
I have done all the thingas as per your solution.But unfortunatelly it cant work.
Can you please give me detailsed procedure.
Waiting for the reply.
|
|
|
|
|
I would like to know how to change localization in VS2008 setup project dynamically. Scenario is like if operating system's langauge is french and user clicks on setup.exe, all screens should come in french and same for English langauge.
I have created Setup project by keeping Localization property to English. It shows me all screens in English. Now If I changed Localization property to French, it shows me all screens in French. But I want it dynamically and it should consider machine langauge and display accordigly.
|
|
|
|
|
I am New in Windows application.
I am using .NET 2.0 with Vb.Net.
in my project i have to put some control on MDI from.
when i put some control on it and open Child form,
Child form goes behind to that control which i put on MDI Page.
Can any one help me,
how i will sole my problem.
|
|
|
|
|
|
Hi! Everyone I'm New to Programming.I'm working on Visual Studio 2005 Win Forms Applications.I Complete my Code and it Works But Now I Wanted to Improve My Code.I Want to set the Position of controls according to the change in Size of Form at Run Time.
Thanks for Your Advise.
|
|
|
|
|
Use Anchor and Dock properties of control class.
|
|
|
|
|
First of all THANKS for Your Advise SIR...............
But My Problem is that I don't want to Change Properties at Design Time.I want to set Anchor and Dock Properties of Control Class at Run-Time.
And Your Blog is Very Nice.I'm very Thankful for Your Answer.
|
|
|
|
|
You can set this properties at runtime too. All controls have properties called Anchor and Dock
|
|
|
|
|
Thanks for Your Advice Sir.
But I wanted to know the Code for that.
|
|
|
|
|
|
Thanks a lot Sir Now I'm GLAD By Your Advise.
Thank You Once Again for Helping Me.....
|
|
|
|
|
You are welcome
|
|
|
|
|
Sorry Sir I want to Rate Your Reply as BEST,I think BEST Rating is No 1 But Actually it is No. 5
Sorry..........
modified on Sunday, November 16, 2008 2:49 AM
|
|
|
|
|
If you want to rate it as best then you vote 5 for it, not it.
|
|
|
|
|
hi everyone
i want to add textbox and button in every cell of the column in the datagridview using .net framework 2.0
windows application
|
|
|
|
|
I believe you can use API and use the SetParent method to embed controls into datagrids. Their are a few articles on this site that should be able to help you, I don't believe their is an easier way unless you want to switch to the Windows Presentation Foundation.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hello freind,
I have taken a rich textbox in a form and i want to show all the content of RTF file. and also if any where in the file any word is bold then i want to add tag bold of any bold words just like HELLO
so please suggest me how i will add tag starting of bold word and in end .
Thanks in advance..
|
|
|
|
|
You would have to first load the RTF file into the richtextbox. Then you will have to write code that will loop through all of the text searching for the words to bold. You are going to set the selection start and end points and then bold them.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hello All,
I'm developing an application. In this application i want to detect the printer status. status means online , offline , low paper, no paper , paperjam. Can any one give suggestion on this.It will be great helpful for me.
Thanks in advance.
Sekhar Reddy
|
|
|
|
|
|
I am at a loss. Can someone PLEASE help me with the above error message?
I have a Windows Application with a PresentationLayer, DataAccessLayer, BusinessLogicLayer and Web Service for Client Application Services.
When I run my app it executes as follows:
I login using the loginform. Upon login a new form is opened and the form_load event executes. When this happens the following line executes -
var _bllEntities = new BLLEntities(); . It then jumps to my BLLEntities.cs file where the following line executes -
readonly Entities DALEntities = new Entities(); . It is at this line where VS tells me that the Type initializer for DAL.Method threw an exception.
The innerexception tells me that I need to use the "new" keyword that I have as you can see, and the second innerexception tells me to check if the object is null before calling the method.
How can I check this as I have
var _bllEntities = new BLLEntities(); declared right after the class namespace. I cannot use if or switch.
Thank you!!
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: It is at this line where VS tells me that the Type initializer for DAL.Method threw an exception
The exception is coming from lower down the stack. Check the stack trace property of the exception to pin down exactly where it is coming from. It's possible it's coming from somewhere that you don't have loaded in code, or it's being handled and then re-thrown from lower down.
Try changing the visual studio options to break on all exceptions (Click Debug->Exceptions, Tick the Common Language Runtime Exceptions box, Click OK)
Simon
|
|
|
|
|
I have figured out that there is a problem with the app.config file. I have changed my connectionstring in the DataAccessLayer and now the error is gone.
Can you maybe tell me how can I reference a dataset from the DAL in the BLL? When executing my code everything works in the DAL and the return dataset is populated, but as soon as I step into the BLL the Dataset is null. I am using a property but the set never gets executed.
Thanks!!
Illegal Operation
|
|
|
|