I want to know how to generate reports in WPF app. I found some tutorial in MSDN. They say that i need to add new reference to
Microsoft.ReportViewer.WinForms, but I don't have such thing on list. I want to design report in Visual Studio and open it with code.
Go to project -> Add -> References. Then in the search bar search for Microsoft.ReportViewer.WinForms. This will allow you to add a report viewer which will display the form you create.
Related
So I want to start doing c# from head first c# 3rd edition, the big problem is that I can't find neither blank page and I saw alot of people saying that using WPF is okay, but when I try and add a new item I see nothing related to c# or what I actually need, what I need is a basic page, here is how it looks like:
now the problem is I can't fix it to show me what I need only for c# I tried, community,enterprise.
Does anyone have any idea of how to fix this?
You seem to be trying to add an item at the solution level. Note that in the screenshot it says "Add New Item - Solution Items". This will create files that exist in the solution, but no belong to any particular project, not affecting the output of compilation of any project. That's the reason why you don't see anything code related, you're not editing a code project.
Instead, right click on the project item on the solution explorer (not on the top solution item) and add a new item there. The selection of options will be specific to the type of code there. For example for WPF you'll get all XAML-based file types, or for Winforms you'll see forms and control classes.
I had this same problem I am using Visual studio 2015 community edition, the problem is you have created the wrong project to start of with. The screenshots in the book are from VS 2013 so it will look a little different.You need to create a Blank App(Universal windows 8.1) highlighted in the image attached and not Blank App(universal window). Once I done this basic page will no be available in the add new item page.
VS 2015 Screenshot
As you can see in my screenshots below, I don't have an option chart under my toolbox. I checked and seem to have the proper references in place. I don't see any option to add the chart control either. Please help. Tnks.
reference
toolbox
no option to add chart control
The References under Solution Explorer only refers to what you can use in code. Toolbox items have to be added separately. To do this, right-click inside the Toolbox and select Choose Items.... In the dialog that appears select the tab referring to the type of control (in this case it looks like WPF). Scroll through the list to find the controls you want to add, tick them and click OK. The controls should now be available in the Toolbox. You can add extra tabs/sections to the Toolbox with the Add Tab right-click option.
That's a good question - I needed to search for a solution when I first tried to add new controls to the Toolbox!
Hope this helps! :)
I suggest you to use devexpress..
Install devexpress first..
After installing , restart you visual studio,, open a windows form application
and
Try devexpress..
Add " New Tab" in your tool box.
Right Click Tab and "Choose Items"
You can select dll files there. selec all related files and click ok
when you are done, just drag and drop chart control on you application, the reference will automatically updated.
The Chart is not a standard feature control of .NET 3.5 although it can be installed from a separate download. It is only standard in .NET 4.0 or higher. It is Not available at all (no separate download) for .NET 3.0 and below!
If you can, do change your project to .NET 4.0 to make the Chart control present in the Toolbox and then be able to add it to your forms. I have learnt this the long way...
I have created Visual Studio 2012 Package Project (from VS2012 SDK) with my own Custom Editor. It works fine. Editor is associated with solution files with *.myext extensions. Now, I would like to be able to create such a *.myext files with taking advantage of Add -> New Item.. option from context menu in Solution Explorer of VS2012. Thereafter, what is important, this additional functionality should create two files at one, similarly as it is performed by EF Entity Data Designer, WinForms designer, Resources designer, etc. First file with main editable content which is modified by Custom Editor (*.myext) and contains design schema, and the second file which is auto-generated and contains output (in my case XML) data (*.myext.xml.).
How can I register file type and implement that functionality?
This article shows how to add Items to the Add New Item Dialog Boxes. I'm sure it will be easy to find possibility to create two files instead of one.
Or you can add you own menu item to Add menu using VSPackage.
I'm trying to follow the instructions on http://www.codeproject.com/Articles/50056/Read-M4A-tags-in-C to host the QuickTime control in a Windows Forms project. I'm using VS2010 with C#.
I've added all the available Apple QuickTime COM references to my project but I don't see the QuickTime control listed in the Toolbox.
In several examples online, people are using AxQTOControlLib.AxQTControl qtPlayerObj = new AxQTOControlLib.AxQTControl(); to initialize the control. In my project, I only have QTOControlLib, not AxQTOControlLib.
I've done this a bunch of times with other controls. Am I missing something?
Thanks!
You can right click on your ToolBox select Choose Items then select the Com Components Tab. You then will want to look for Apple QuickTime Control 2.0 and select it. When you Click Ok you will then have the Control in your ToolBox.
Try this, Open a console and browse to the location of QTOControlLib. Run AxImp.exe with QTOControlLib.dll as an argument. It should generate the AxInterop which you would then reference in your project.
PS: If you have already added QTOControlLib.dll to the toolbox, add a temporary windows form and drag the control on to the form. Visual studio should automatically generate the AxInterop. If this does not work try the above mentioned solution.
I am using Visual Studio 2010 for generating reports using report viewer... As I am totally new to this, I don't know how to create an RDLC file and how to use it... Also, please tell me that what the connection is between Report Viewer and rdlc
Please help me out. Thanks
To add an RDLC report do Project > Add New Item... > Reporting > Report. You can also use the Report Wizard which is on the same screen. RDLC has a large wealth of information you will need to know about, so you will want to start digging into the documentation.
Creating Client Report Definition (.rdlc) Files
Here is the answer http://msdn.microsoft.com/en-us/library/ms252067.aspx
To add a new report to a project
In the Project or Web Site menu, select Add New Item.
In the Add New Item dialog box, in the Installed Templates pane, select Visual Basic or Visual C#.
In the Templates pane, select Report or Report Wizard.
If you select Report, a blank .rdlc file is added to the project. For more information on how to design reports in Report Designer, see Reporting Services Reports in SQL Server Books Online.
If you select Report Wizard, the Report Wizard is started to guide you through the steps in creating a report. For more information on the Report Wizard, see Creating Client Report Definitions Using the Visual Studio Report Wizard.