t7200's Q&A profile
Visual Studio How to Print Server Report Directly.
hi, i have reports deployed on report server. My application is accessing these reports using Report Viewer Control. I want to provide a button on the form that when clicked print the report directly. what am i doing is , i use reportviewer control and after calling RefreshReport() i call this method PrintDialouge(). This gives me exception, "Operation is not valid due to the current state of the project". Can any one have a solution for this how can i print server report directly. i have found out work around. in ReportViewer Event RenderingComplete, i called PrintDialog method to ensure that this method is called a ...Show All
Visual Studio Tools for Office Adobe not playing nice with VSTO
greetings, When adobe professional is installed, it seems to cause a bunch of weirdness with my menu items in my vsto solution. On some machines they are shown for a sec and then hidden, on other machines it takes over my menu items and shows adobe items underneath my top level item. this is a show stopper for my vsto solution as these products are often gonna be found on word. any suggetions. Mary, I suspect that Adobe is merging its menu items with the ones added by your VSTO solution. I think you may have to write some additional code to move your menu items around when Adobe is installed or remove the Adobe addin (temporarily) i ...Show All
Visual Studio Express Editions Display names of computers on a network in a combo box
I know that this must be posted somewhere, but I can't find it. Hopefully this won't make you mad as this has probably been asked many times: I need to display the names of computers within a network in a combo Box. I have recently restarted to do a bit of programming and I have forgotten nearly everything, so please excuse me if I don't know what you mean. Last post of this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=215715&SiteID=1 has the code. Add a reference to System.DirectoryServices to your project and imports System.DirectoryServices in your code file. ...Show All
Smart Device Development Matching enumeration with reflection in Compact Framework
I am trying to match an enumeration defined inside a class that is instantiated as an object with an Activator in the Compact Framework. Code Snippet: public class MyClass { public enum EnumeratedType : short { // Requests RequestA = 0x01, RequestB = 0x02, // Responses ResponseA = 0x11, ResponseB = 0x12, }; } The object is instantiated thus: Type t = Type .GetType( "MyClass+EnumeratedType" ); object ob = Activator .CreateInstance( t ); If ob is then set to, say, 0x11 by another operation, I need to access the string of the enumerated name, but ...Show All
Architecture What about making domain specific "Enterprise Library" ?
Presently "Enterprise Library" is related to Application Development Process. Desinging "Enterprise Library" for the best practices is good. But what about making enterprise library... related to Solution Specific, I mean to say domain specific... For eg. - Financial, Manufacturing, ...etc. I think if Tom and his team start developing EntLib for every domain, they will be coding forever... Domains are huge, and even though you get a domain specific EntLib, trust me, you will still have to go ahead and change tons of stuff to get it fixed as a base of ur app. I rather have a common EntLib (like the one ...Show All
Visual C# Printing text directly to a printer (NOT as a graphic)
I can print text if i do a e.Graphics.DrawString(......) My problem is that I am trying to print to a card printer, and usually it checks what text it is printing, and if it hits a '~' it then encodes the magnetic stripe. When i print from Microsoft word, or Access, it works fine because text is sent to the printer. But using "PrintDocument" object and drawing to a bitmap, it is unable to parse the text. Any ideas on how to print text directly to the printer at locations, instead of rendering them onto a bitmap first I've tried using the WebBrowser.Print mechanism. I encountered a problem. If my ap ...Show All
SQL Server Profiler: Deadlock graph
Hi. I'm trying to capture Deadlock Graph in profiler. I've checked it in the event list along with Event:Deadlock. I generate a deadlock... The Deadlock event shows up in the trace, the Deadlock Graph does not. I'm pretty sure BOL says that for every deadlock there is a deadlock graph. I've also tried the steps in BOL to save the deadlock graph xml to a file. The file is empty. any clues thanks Deadlock Graph is TraceEventID 148. It's definitely in my trace.. Here's a simple example of where a deadlock appears in the trace, but the deadlock graph doesn't. < xml version="1 ...Show All
Windows Forms Datagrid Relations Dont Update Datasource
I am having a bit of a problem that is difficult to explain. I have a 2 datagrids set up like so: 'Parent Datagrid settings FormDataGrid1DataSource = DS FormDataGrid1.DataMember = "products" FormDataGrid1.AllowNavigation = False 'Child datagrid settings DS.Relations.Add("ProductStyle", DS.Tables!products.Columns!prodid, DS.Tables!prodstyle.Columns!prodid) DS.Relations.Item("ProductStyle").ChildKeyConstraint.DeleteRule = Rule.Cascade DS.Relations.Add("LinkStyle", DS.Tables!prodstyle.Columns!styleid, DS.Tables!styles.Columns!styleid, False) FormDataGrid2.AllowNavigation = False FormDataGrid2.DataSource = DS FormDataGrid2.SetDataBinding(D ...Show All
Visual C# How to determine if Object A is the same object as Object B
Hello, Take the following method (C#).. void MyMethod( object a, object b) { //Some code here... } ...and call it with the following code... MyClass x = new MyClass(); MyClass y = x; MyMethod(x, y); What's the best method within MyMethod() to determine if both parameters are one and the same object Should I be using object.ReferenceEquals() or just plain if (x == y) Thanks in advance for your help. Ben Yes. The CheckBox class doesn't overload operator== anyway so you'll be fine with your example code. By the way, even if a class did overload operator== yo ...Show All
Visual Studio Express Editions GACUTIL
=== Edited by AdeptBlue @ 19 Jan 2006 4:04 AM UTC=== Me again ... I think this is a bug in VS2005 Express ! I just added my DLL to GAC manually without any problem. (Don't ask why I didn't try that before -- sometimes I am so dumb I scare myself) Will the VS205 team pick up this bug report here or should I post it some other way (Maybe a silly question, but I'm a newbie) ====================================== OK ... I admit it ... I'm in W a a a y over my head now! I don't even know which Forum to use for this question, but since the problem occurs while I'm working in C#, I guess I'll start h ...Show All
Visual Studio How to get the build order via an EnvDTE API?
I have an addin that needs to know the build order as it is listed in the VS Solution|Project Build Order dialog. While analysing the dependencies for the projects is great (and works for projects that have an expressed dependency), I found that the project build order for unrelated projects is fixed (and frequently relied upon by solutions), but as far as I can tell there is no way to figure that order out programatically. The build order as displayed in VS seems to change completely every time I add a new project. To reproduce: 1) Create an empty solution 2) Create a C++ console app project called "a". 3) Create a ...Show All
Visual Studio Team System I'VE TRIED EVERYTHING: Error 28100.Error loading Event web service
I'm trying to install the Beta 3 Refresh of Team Foundation Server. I keep getting a "Error 28100.Error loading Event web service." I'm doing a single server installation on a machine and using SQL Server 2005 enterprise. I've spent a lot of time looking for fixes to this and I think I've applied everythign I've seen: I've made sure my tfssetup, tfsservice, and tfsreports accounts are domain accounts, I've verified the SQL Reporting Server installation, I've followed the installation instructions minutely step by step. This morning I reformatted the box and started with a clean win2k3 installation, applying every service pack and double and ...Show All
SQL Server How many partitions
Hi, in a cube a good partitioning schema is essential in my understanding. We have a requirement of a near realtime cube with quite some load in it (gigabytes of data added and changed every day throughout the day). To get around the ROLAP we were looking for having small partitions which can quickly be reloaded using proactive caching when they have changed data. Is there any "practical" limit on partitions Does having many partitions mean that you might have some critical overhead We might think about having 7000 partitions or more... Thanks, Dave, in our first project on SSAS 2005 we already experienced perform ...Show All
Visual Basic Loading and showing a form in a Panel control
Is it possible to load and display a form inside a panel control using Visual Basic 2005 and if so what code do I need to handle this. Regards Dipendra Hi. I don't think it will be possible. I tried to make a panel be the parent of a form and I received a huge exception. It doesn't sound logical to me to do that but as far as I tried it didn't work. What are you trying to do (if we can know of course) Are you trying to do a MDI app something like Outlook Express or Ms Word or something like that regards. ...Show All
Visual Studio Unable to create document windows with mixed case mkdocument name
Hi I am using IvsUiShell.CreateDocumentWindow() to create my document windows, I am passing following Doc window Creation flags: ( uint ) _VSRDTFLAGS.RDT_DontAutoOpen+( uint )_VSRDTFLAGS.RDT_NonCreatable +( uint ) _VSRDTFLAGS.RDT_CaseSensitive I am using VsCodeWindow and VsTextLines as my doc view and doc data respectively. After the window is created I hook up in the Window procedure of parent window by using following code IVsCodeWindow codeWindow = this .VsCodeWindow as IVsCodeWindow; IVsTextView textView = null ; hr = codeWindow.GetPrimaryView( out textView); IntPtr hwnd = textView.GetWindowHandle(); ...Show All
