Saurabh G's Q&A profile
SQL Server matrix subtotal
hi, If I use the matrix to dynamically show the columns,but at the last column,I hope to get the average data ,But the subtotal can not help in this case,how can i do thx for help! I think this thread can help you: http://forums.microsoft.com/MSDN/showpost.aspx postid=791849&siteid=1&message_id=524412¬ification_id=524412 ...Show All
Visual Basic BIG error
OK, I'm gettin this error 44 and I don't know what to do. Error 44 The "ResolveComReference" task failed unexpectedly. System.SystemException: The type library importer encountered an error during type verification. Try importing without class members. ---> System.MissingMethodException: Method not found: 'Void VB._PictureBox.set__Default(System.Object)'. at System.Reflection.Module.InternalLoadInMemoryTypeByName(String className) at System.Runtime.InteropServices.TypeLibConverter.TypeResolveHandler.ResolveEvent(Object sender, ResolveEventArgs args) at System.AppDomain.OnTypeResolveEvent(String typeName) --- End of inner exception stack trace --- S ...Show All
Windows Forms Custom events witch object type propertys
I am making a user control where 3 of the propertys are of the type Voltage, witch is a self defined object. consisting of a float and a enum. When one of the voltages changes I want to trigger a custom event to notify the program about this change. I though I could do that like a normal attribute like this: public partial class Switch : UserControl .... private Voltage a= new Voltage (); .... public Voltage A { get { return a; } set //This is never reached if I change a value like Switch1.A.volts=10. { if (a != value ) { a = value ; OnVoltageChanged( new SwitchEventArgs ( this , state, a, b, c)); } } } .... public event Switc ...Show All
Visual Studio Tools for Office ConfigurationErrorsException using WCF in VSTO
My Code calls a Web Service from Excel using WCF. In a stand alone application everything works fine. When I copy that code to my Excel project in VSTO and try to Debug it, I get an Exception: "System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.serviceModel/client: That assembly does not allow partially trusted callers". mscorcfg.msc (.Net 2.0) tells me, that my assembly has Full Rights. <Security> in my .config file is set to "None" Hello, I have an identical problem. Where can I set the “ "Trust assemblies Location" property=true ” How can I change the trust level of the directory wher ...Show All
Visual Studio Tools for Office Dynamically created CommandBarButton Avoiding Garbage Collection, Outlook
Is there anything that can be done for a CommandBarButton that is dynamically created, to make it avoid being garbage collected in Outlook I build a menu with submenus that have buttons to create emails, based on an xml file. So the buttons are dynamically created because the xml file can be changed. I really need a way to avoid gc for dynamically created buttons if possible please or some other work around Cheers. yep, that's exactly whats happening. i have come up with a work around, its a bit of a hack, but it isn't as "heavy" as it first seems. this is a very simplified version of what i did have, but conveys the concept: public partial class ThisApplication { private void ThisApplication_Startup(object sender, ...Show All
Visual Basic Web Browser Page Setup Automation
I need to change page settings for a web page in a web browser control automatically. I need to change the margins and I want to print a web page from a Web Browser Control without the header and footer, you know with the Page Title, url, page x of y, and the date/time. Or is that even possible EDIT: after further research it sounds as if this is possible. An MSDN article on printing from a Web Browser Control sates ...use the ShowPrintDialog method. To display the Page Setup dialog box, which lets your users specify header and footer values... so this tells me the header and footer can be removed manually in a page setup dialog, so I assume the same can be done automatically then with some programming.... ...Show All
.NET Development Interop layer throws System Exception (cast) when accessing unmanaged COM code
I would appreciate help/comments on the following... I am trying to access a COM component written in Fujitsu NetCOBOL from C#. I have spent many hours (days...) reading the docs, trying various combinations, and looking at the samples but my attempts are failing miserably. The COM .dll is called "AVSCOMSVR" and the embedded TypeLib has been picked up and converted to an Interop Assembly by VS 2005. Here's a picture of the generated interfaces and Classes: http://homepages.ihug.co.nz/~dashwood/dashwood/AVSProject2.jpg I find this a little puzzling... VS2005 seems to have duplicated the interfaces, some above the Class entry and some subordinate to it, but that may be OK and just reflect my limited understandin ...Show All
Visual C# Problem with designer
Hi all, I have a problem with the form designer. Every so often, one of my forms in particular produces this error Object reference not set to an instance of an object. Hide at System.ComponentModel.WeakHashtable.WeakKeyComparer.System.Collections.IEqualityComparer.Equals(Object x, Object y) at System.Collections.Hashtable.KeyEquals(Object item, Object key) at System.Collections.Hashtable.Remove(Object key) at System.ComponentModel.WeakHashtable.Remove(Object key) at System.ComponentModel.WeakHashtable.ScavengeKeys() at System.ComponentModel.TypeDescriptor.AddProvider(TypeDescriptionProvider provider, Object instance) at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] ...Show All
Software Development for Windows Vista Why WF?
Hi, I spent the last few months playing around WF, finally have better understand on how to create workflows and design the host applications. Then the next question is where and how to make use of them. My job focus is on Web-based Document Management Solution, which might involved some document approval workflow. One of the basic requirements is we need to provide a way for the users to design / modify the workflow (like many other DMS solution in the market). If we go for WF as the Workflow engine, I've the following concerns: 1) the WF designer seems too complex for ordinary users to understand. Also doesn't work under Browser Environment (actually it can but not recommended because of security issues). 2) a workflow ...Show All
SQL Server Clustering , how to start ?
Dear Friends, i'm using windows 2003 server on both computers i wanted to practice clustering with sql 200/2005 [two nodes] but it asks for a quorum disk as a shared disk between the two clustered nodes, i didn't know what a quorum disk it, the internet when i searched for says that a quorum disk should be either a scsi or fiber channel disk, i've never seen a scsi disk, i'll purchase it today, but what i'm confused about is, how will i connect one single scsi disk two two computers/nodes i mean does a scsi disk have a long cable to connect to and if yes, then where does the cable fit in on either of the nodes, or is it not physcially shared then if it's logical then how do i configure it. pls reply soon, regards, and thanks ...Show All
Visual Studio Team System Perforce TS convertor
Hi All, Does anybody know how much work involved to write a Perforce to Team Foundation Version control convertor I don't think such convertor exists yet. Can this be done by use VS SDK Or I will need to write to database directly Any comments would be help. Thanks you all in advance. Hi Eugene. Thanks for this piece of info. WIll definitely try this out and let you all know about my experience. - Shabariji. ...Show All
Visual Studio Express Editions IDE Font not going bold...
Hey all, I'm trying to make the font for the IDE Text Editor to be bold for more clarity on my new larger monitor. I go Tools -> Options -> Fonts & Colours -> Text Editor (drop down) and check the box marked Bold. I hit OK and restart just to make sure, but the only thing that has changed is that now the parenthesis and braces are bold, but the text remains the same. Any ideas Failing a solution to that, can anyone recommend a good mono-spaced font that's already thick Something like a FixedSys only larger That's my favourite font and would love an 11 or 12 point version (I tried the TTF version that's available, but it looks like *** when resized up). Well thanks. A very nice fixed pitch ...Show All
Internet Explorer Development Problem with cancel IE navigation by using Stop() method
Hello, I try to cancel IE navigation by using BHO written in ATL (I use as example a PopupBlocker by codeproject) and to make IE to navigate to "my" url. But Stop()-Method returns the program to Invoke(...) and causes BEFORENAVIGATE2 event again instead of to stop navigation. The IE will be navigated to navigation cancel site and then to http:///. That is a code example that I use: STDMETHODIMP CPub:: Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,DISPPARAMS* pDispParams, VARIANT* pvarResult,EXCEPINFO* pExcepInfo, UINT* puArgErr) { if (!pDispParams) return E_INVALIDARG; switch (dispidMember) { case DISPID_BEFORENAVIGATE2: *V_BOOLREF(&pDispParams->rgvarg[0])=VARIANT_TRUE; m_spBrowser-&g ...Show All
Windows Search Technologies WDS(BETA2) ,IE7(beta) and OneNote 2007
Good Morning All, My question is twofold. I am running XP(sp2), IE7 and OneNote2007. When accesing OneNote it states I have to download/install WDS 3. I do the download, but WDS wont load or start. I have tried numerous times (rebooting, clean istalls of XP, Office and WDS) with no luck. Any suggeations Any help will be appreciated. John Smith Hi All, The 3.0 beta of WDS does provide functionality when the Office 12 beta is installed. As I mentioned, the standard WDS user interface is not available, however, the WDS beta is the engine that powers the quick search in Outlook 12. This quick search allows you to search your email in split seconds as opposed to the "old" email search which ...Show All
Visual Studio How to change FieldDelimiter in a reportviewer (export to CSV)?
This reply really helped me out! Great thanks to Brian Hartman and also Michael Shorten ...Show All
