How can I give option to user to design there own reports? i.e. They should be able to define
1. Report Title
2. Reports Fields(When they click on Work Order button they should be able to view Work Order Table column and they should be able to select columns then a report should be composed. Then all the Column should be in the form datagrid. Is it possible.
I need to create vb.Net reports, where end user can design himself labels,text box,combo box and can move or resize in grid like editor.i am pasting the sample image which i am looking for.when ever user clicks the command button new Texbox or label should create on grid where he can change or move.
I never got into detailed error processing too much when I played in VBA/VB6 a lot. Mostly then, if you ran into a user error (such as some input of theirs failing a validation test of some kind), you popped a MsgBox() with some error information and the critical (or warning) icon, and safely aborted out of the code
In .NET, my reading basically points to exceptions as the end-all in error handling. It looks to me that if you know a spot of code where a user can screw up, you're supposed to catch it with either try...catch blocks (for things like data conversions), or standard if...the...else constructs for other things, and then throw a new exception if needed.
Isn't throwing an exception essentially a forced crash of a program in a sense (granted, you get the option of continuing)? Or are exceptions geared specifically for things like data conversion errors and other "things that shouldn't happen", and resume use of MsgBox() and friends for minor user screwups?
Consider the case of where you have a TextBox that is only supposed to accept numeric data (or heck, just a specific set of characters). Barring some other trick that lets you restrict that field (let's just assume it's freeform, programatically), it would seem a bit of a waste to throw new exceptions everytime they type in an invalid character, or even if the error checking doesn't happen until they press a submit button (like on a webpage). Popping a MsgBox() seems more sane in that case.
So what's the straight dope on exceptions and throwing new ones on user errors? How about if your program also exposes a programmatic framework? Bad usage of one of the programmatic functions definitely seems like new exception territory to me.
i have a question concering Reports. I am using Visual Studio 2008. As it currently stands when you try to export a report you have two options, either export to pdf or as an excel file (97-2003). Is it possible to also include an option for saving the file in Excel 2007 format as well?
I can articulate my question well enough to get some clear and usable feedback here. I have reports (like paper reports) in my .NET application that have data bound to them. Typically the reports are a combination of many data elements across several busniess entites that may not all relate through an Inheritance hierarcy, etc. This makes it difficult to get all the needed data placed together to bind to the report.
So what I have done before are make 'Report' classes with data elements specific to supporting the reports they are bound to, and on the back end might be tied to specially created Stored Procedures that bring this data back (maybe several joins across many tables to get the right data needed). So if I was to make an analogy to the database world, I am essentially 'denormailizing' the data structure to get all of this data into a single class to make it easy to bind to the report.
However on the hard line OOP concepts and architecture design, one could say that a report is just another 'thing' to bind data to, and its class should not be designed just to suit the needs of data binding. In this thought process, I would actually need to make my class design be able to create the relationships needed to get all of the data together properly to still be bound, but not create any special 'Report' classes. I find this difficult to do sometimes. It is much easier to create these relationships in the back end stored procedures and then just output the resultset to be almost immediately bound to the report.
So what is the right way to solve this? If I create these specialized report classes with really no behavior, am I introducing an anti-pattern like the Anemic Domain Model?I could use some feedback, and please speak up if my question and scenarios did not make sense.
I�m converting some Crystal reporting functions from VB 6.0 to VB .Net 2008, have reports up and running, and I�m not quite sure how to approach one aspect. The issue I have is most of the Crystal reports connect to a database and run a stored procedure. The connection properties are set up in the report usually pointing at the development region. At run time I need to be pointing to either development, user acceptance, or production. I know what environment I�m in from a configuration file but don�t know how to go about telling Crystal what environment and stored procedure to point at. In VB 6.0 it was:
CR1.Connect = "DSN=" & A.ReportServer & ";<<Use Integrated Security>>;DSQ=" & A.ReportManhattanDB Where A.ReportServer and A.ReportManhattanDB contain the connection poperties. The stored procedure is passed via:
I am encountering a very mysterious error which I have not encountered before. While trying to use VIEW DESIGN OPTION in VB.NET 2003 Solution Explorer to maintain the existing FORM the error message list below appears.Here is the error message that appear in the TASK BAR panel at the bottom of the Screen Property accessor 'IsMdiContainer' on object 'System.Windows.Forms.Design.FormDocumentDesigner' threw the following exception:'Specified cast is not valid.'
I have a form with multiple checkboxes what I would like to do is to have it that if someone selects any combination of the checkboxes they could save those selections by pressing a button named save options or something to that affect it would then save those selections then they could load them by pressing another button load options and run them with another button named run options (or the box that loads could run too) not sure the best way to do it the goal is ultimately to have a button that allows the state of the checkboxes to be saved and then run as a custom option.
how would I do this I cannot find anything on the Internet ?
I have a custom business object which overloads the .ToString() function. It also implements IFormattable.ToString, so I can define my own custom formats.This approach seems to work everywhere in my app, except .rdlc reports. For example, I have a text field on a report with the following expression:
=Fields!MyField.Value.ToString("lr")
"lr" is a custom format I have created. When running the report I always get #Error as the output. I've placed breakpoints in my .ToString function and stepped through the code as the report is running, and I know the function is returning the correct value, but the report just doesn't seem to be capable of receiving and displaying it.
How do I add a opacity option to my custom control... I dont know what to do an I have googled multiple times but it must be possible somehow. but how. Does anyone know how? just for refrence I have no code on this bar my custom control.
I am currently hosting an IE Browser control in a .NET (2.0) Form and using it to load Office files such as Excel and Word thusly:[code]The hosting and loading works well except whenever I navigate to a file I am presented with a dialog that asks whether I want to save or open the file. (This is standard IE file-download behavior.) I always want to open it of course and I do not want the dialog to show.Another issue is that when I close the window that hosts the IE control and the Office doc the document does not close and remains open on disk. This means that subsequent attempts to open the same file via my app or the native office app will fail because of the sharing violation.Is there a programmatic way of avoiding this dialog and cleaning up resources afterward? I am asking for a programmatic answer because web research has only yielded solutions that entail modifying OS-level settings.
Host an Excel spreadsheet inside my application.Work rather transparently (avoid usability issues like the one described above)Avoid having to make any OS-specific changes that may affect other applications (especially icluding IE)Is zero additional cost (no licensed 3rd party libs please) Code Project and other open source resources are OK.Not mess around with the DSO Framer ActiveX control, unless a stable version is developed/discovered
http://127.0.0.1:47873/help/1-6644/ms.help?method=page&id=C318B79A-FA4D-4DE3-B62D-C1162BEB267E&product=VS&productVersion=100&topicVersion=100&locale=EN-US&topicLocale=EN-US and i get the following error
setting the default value for an integer attribute of a custom control seems to have stopped working. The following code adds the Maximum attribute to the design-time properties table, but the default value pops up as 0, not 99:
<System.ComponentModel.Browsable(True)> _ <System.ComponentModel.Category("Behavior")> _ <System.ComponentModel.Description("highest value possible")> _
Now as the title says, I'm looking for guidance on some design-time support for the many custom controls I'm working on at the moment.At the moment I'm 3 months in on a Business and Inventory management system for my mothers business. It contains many, many custom controls I had to build from scratch because the ones provided just didn't cut it for what I needed. Now one in particular is a tab page control. Just as the provided TabControl Visual Studios supply's us. It has a lot of design time control. Such as clicking the tabs and adding controls to the panels being brought to front by the corresponding tab being clicked. I had a friend of mine try to show me what I had to do, but the way I had already built my control would have made it difficult - His words, so he never officially showed me anything. If it is true what he said then I can skip that, no problem. But adding the controls to the panels during design time I must have, but cannot seem to find anything through Google searches, text books or even kids majoring in software engineering.
I'm currently working on a treeview but want to add custom nodes at design time, is this possible?Also the treeview is part of a control, so i have created a control designer and added a custom design time form to add my custom nodes, but can't seem to get the nodes into the treeview in design time, and serialize into the form automatically?All my custom tree node is is an extra integer at the minute, but more properties will be added later if I can get this working.
I have made my program but I want to give users the option of choosing a custom color for text. I have an inputbox that works and then converts it to Color.whatever. But seeing as the user types in what they want and it is not done by the program itself it can throw exceptions.
Dim directresponse As String Dim actualcolor As String Dim isgood As Boolean
[code]....
That is my Sub, it will make Color.(userinput) but I need to check if Color.(userinput) is actually a color that VB.NET can understand and add set.
I have tried "System.Drawing.Color" I get told it is a type and cannot be used in this context.use System.ComponentModel.TypeDescriptor to convert it to a color and check if it is real and then set it.
I have a form where I have created a custom property, DataEntryRole, and set its Browsable attribute to True, as shown:
<Browsable(True)> _ Public Property DataEntryRole() As UserRole.PossibleRoles Get Return mDataEntryRole End Get
[Code]...
When I view the designer for my form, DataEntryRole doesn't appear in the property box. I assume that it should appear if I were to create another form that inherited from this base form, but that's not what I want. I want this property to show up in my current form.
I have a custom component, that contains a list of another components.If I add a child component to the list, it shows up on the same level as the parent component in the document outline window.How can I make it a subitem of the parent component? (similarly to e.g. TabPages that are subitems of a TabControl)
Here is my code: Public Class SomeComponent Inherits Component
I have created a custom Combobox and added it to my toolbox, and it works well. Now I have added a custom ListBox to the same file as the combo box, but it does not show on my designer when I place it. I can however add it at runtime. ''ComboBox <DefaultEvent("SelectedIndexChanged"), _ ToolboxBitmap(GetType(System.Windows.Forms.ComboBox))> _ Public Class ProjectsComboBox Inherits ComboBox ''My Customization [Code] ..... I have tried removing the "DefaultEvent..." and still no dice.
I am currently creating a tool that can manage local user accounts on Windows-PCs. I am using the functions described on
this MSDN page ; and after some struggling, I got most of them to work.
Unluckily, I haven't found a way to set the option "User must change password at next logon" while creating a new user account. I use the
NetUserAdd -Function to create the new user. I set the level to 1 and supply a
USER_INFO_1 -Structure . This structure accepts flags, and the flag UF_PASSWORD_EXPIRED seems to be exactly what I want - but when I set it, the user can log on without changing the password first...
I'm developing on Windows 7 Ultimate 64-Bit using Visual Studio 2010 Express.
Here's my code:
#Region "Constants" Public Const UF_PASSWORD_EXPIRED As Integer = &H800000 Public Const USER_PRIV_USER As Integer = 1
I have some custom user controls in my .net winforms program that do not display correctly when the user has selected larger text size. This setting:
My controls look like this: Instead of like this:
The bill to area and ship to area are both custom controls. I don't know if this is contributing to the problem but I do have code in each to scale the phone/fax areas to stretch nicely, like this code from the bill to control,
Private Sub panFaxPhone_Resize(sender As Object, e As System.EventArgs) Handles panFaxPhone.Resize panFax.Width = (panFaxPhone.Width / 2) - 1 panPhone.Width = (panFaxPhone.Width / 2) - 1 panFax.Left = panFaxPhone.Width - panFax.Width End Sub
How can I get my controls to size correctly while still respecting the users choice for larger text (I don't want to just set the AutoScaleMode to None)? After playing with this for a long time it seems to be a problem with anchors in the child controls. See this below image, the inner black box is the control with its border turned on, the text boxes (like name) are anchored left and right and should stretch to fill the control, but don't.
i have a data set on the data set many data adapters .i add a data adapter in the data set the designer was automatically delete then lot of error was coming and i search in google and i go this method and i do that right click the data set and "Run Custom tool" on that time the designer will automatically created. but when i do that a error was coming "The custom tool 'MSDataSetGenerator' failed. Exception of type 'System.Data.Design.InternalException' was thrown."
I've been doing research on reporting suites for a project my company is about to undertake, and have narrowed the candidates down to Active Reports and Crystal Reports. During the demo yesterday, it was clarified to me that one of the capabilities our client would like is the ability for the end-user to create custom reports integrated into the Web-Based client. I know that both packages have options for integrating an end-user designer to a WinForms based app, but I can't find a definitive straight yes or no answer for either suite as to whether or not it's possible to attach them to an ASP.Net based app.
I want too allow my users to be able to choose wether they SEE VISUALIZATIONS in the player in my app when listening to Audio through the Player. Also, how doo I let them choose different visualizatins for the player?
I'm creating an app like a CRM ( Costumer Relationship Managment ) for a school but I have some questions I'd like to be answered.
It will have a main user ( Administrator ) and that user can create another users to access the app. The app will work locally and I would like to know a method to save that information @ localhost without being acessible to edit or view by other users.
Im thinking in a Access DB with all info and then make all information needed. But how to secure it without anyone else could access it or modify id? An encryption method would be the best way?
I am working on an application that I want to give the User the option of using a password and sign-in or not. I have added three items to the "Settings" , these are:
1) SignInRequired (True or False)
2) UserID (string)
3) Password (string)
My problem is that I'm not sure where I should put the code. Should I use a module and set it as the opening form, or shall i put the code in the first form the viewer sees, which I tried and due to other situations the form has several different appearances, a this is causing a problem.