Thanks JohnYingling for your reply.
I still don't understand.
If I create an interface with a method Info() and implement this method in each of my 3 controls. I can make these controls inherit UserControl directly.
But the problem occurs where I need a generalized instantiation of these...
But Info() is to be defined in the child classes. And I am not able to use an interface, because I have to somehow use the UserControl as the base class.
So if I define an intermediary interface that has info() in it (to be implemented in the child classes), then this interface cannot inherit...
I have 3 UserControls (i.e. they inherit System.Windows.Forms.UserControls)
In each of these UserControls, I have a method named "Info()". How can I get this method to be executed without having a direct instantiation of one of the actual controls?
Lets call my 3 controls as
ControlA
ControlB...
I have a report that uses a pair of master-detail type tables: Table A (Parent) and Table B (Child)
The schemas of these two tables is as follows:
Table A
-------
AID
AName
Cost
Table B
-------
AID
BID
BName
TableB's AID is a foreign key referencing Table A's AID
I need to display the report...
Yes, I did try it out as explained in this article but that was not the problem.
This may be quite silly, but I was specifying the SubreportName incorrectly. I assumed that the Name property of the subreport object (VB.NET) is what I need to use.
Turns out I need to use the SubreportName...
How can I set the datasource of an embedded subreport to an ADO.NET dataset? I can set the datasource of the main report using the setDatasource method of the ReportDocument object.
I am using Crystal Reports.NET with VB.NET.
Thanks a loooot in advance. I've been stuck on this for a long...
When I load a child form inside an MDI parent, the menubar of the parent covers the child somehow.
The MDI parent is set to FormWindowState.Normal and has MaximizeBox, MinimizeBox and ControlBox set to True.
The child has the Startup state set to FormWindowState.Maximized and has the...
I have an MDI form in which I load child forms. I need to resize the child forms to fit the entire dimensions of the internal viewable area of the MDI form. How can I find this?
If I set the width and height of the MDI form to say, 800 and 600 respectively, the internal viewable area is always...
Hmm... probably a very silly question from me.
I just had to instantiate the ReportObject by code. And set the CrystalReportViewer's ReportSource to this ReportObject via code (after I set all the parameters of the ReportObject).
Thanks.
Infimo
I don't want the report to load before I explicity issue a command for it do so.
Actually, I require to set a parameter's value in code. If the value is not set when loading the prompt comes up.
I am using Crystal Reports for Visual Studio.NET and using a CrystalReportViewer control to load...
Thanks bdreed35 and synapsevampire. Your solution worked well.
I am using this report under Visual Studio.NET. Is there a way to set the parameter's value using code. I figured out there's a method ReportObject.setparametervalue and it probably does seem to set the value.
But, before I can set...
I am grouping my report using two fields Field A and Field B.
I want the user to be able to either group by Field A and Field B or only by Field A. In both cases I want the details to be sorted on the basis of Field C.
How can this be achieved?
Infimo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.