kevinzx's Q&A profile
Visual Studio exporting error in IE
Here's the line of code I'm using to export crystal reports to the users browser as an attached .doc file: rd.ExportToHttpResponse(ExportFormatType.WordForWindows, Response, true, "WordReport"); When I load the report and click the export button in IE the browser shows a download box but then gives the following popup error box: 'Internet Explorer cannot download filename.aspx from www.website.net' Internet Explorer was not able to open this internet site. What is weird is this used to work a few months back (nothing has changed since then codewise or with server permissions AFAIK) which makes me think this was caused by a windows update of some sort. Exporting still works fine in Firefox as well. For now I changed the code to ...Show All
Visual Studio Problem with the office 2003 addin
Hi, I have created an office 2003 addin with teh code given in the site http://msdn2.microsoft.com/en-gb/library/aa218648(office.11).aspx but the addin is being created and i was not able to get the addin with the frontpage. When i tried to manually add the addin to the front page it is giving an error saying invalid office addin. please help me i have no time...... Thanks, phani In advance Hi, I am sorry to hear that it didn't fix the problem. I am out of ideas, all my knowledge about troubleshooting add-in problems is in this article that I wrote recently, mainly to summarize many answers that I was giving you: HOWTO: Troubleshooting Visual Studio and Office add-ins http://www.mztools.c ...Show All
Visual C# Passing a class as a parameter - gets error message
I'm trying to pass a pointer to a static class to another routine, we'll call it 'bind', such that it can access a member of the class by name; however, the compiler generates an error message that says "Error 4 'nBase.cBase' is a 'type' but is used like a 'variable' ". But I want to pass the class. I'm obviously missing something about how to cast it or how to otherwise make it acceptable to the compiler to be able to pass it. In particular, the Bind() routine I'm calling expects an instance of a Windows.form, and the 'Form1' name suffices here. But this is a static class I'm passing, but perhaps using the class name is the wrong thing to try to pass as a parameter. Any smart folks out there who can tell me how I can solve ...Show All
Windows Forms Disabled all keys and right click, how do I enable all keys in text box?
I am a beginner!! I have disabled all keys on my website as well as right click. Now, I'm going back and seeing that this is all disabled in my text boxes as well. Is there a code that I can insert for the forms only www.norever.com is my site. any help would be greatly appreciated!! Thanks! -Nikki ...Show All
SQL Server Using Filter function in a Calculated Member
Hello Guys, I am new to Analysis Services and using 2005. I use the sharepoint portal to pubish the dashboard. This is my UI for the cube built in Analysis Services. I am unable to comprehend why the Filter function will not work with the Calcuated Member. The requirement is to get the Total Employee head count excluding employees in 2 departments. How do I go about doing this... I tried Filter() and Except() and nothing seems to work... Please help... This is what I have so far... Here is what I have... CREATE MEMBER CURRENTCUBE.[MEASURES].[Total Active Head Count] AS ([Measures].[Active Employee Head Count],Sum( Except([dimensionEmployee].[Employee Department].[All].Children , {[dimensionEmployee].[Employee Department].&[Services ...Show All
Visual C# changing wallpapers using c#
I want to change wallpaper image at regular intervals http://msdn.microsoft.com/coding4fun/windows/misc/article.aspx articleid=912569 ...Show All
Visual Basic Help with setting environment variables
I'm currently building a vb.net common service's library for interacting with tuxedo middleware. The issue im having is setting environment variables to reference the Path of a few different ocx files I use in my project. I've tried the following.... 1. SetEnvironmentVariable API 2. System.Environment.SetEnvironmentVariable("Var", "Val", EnvironmentVariableTarget.Process/User... 3. Add registry values ex. Registry.CurrentUser.OpenSubKey("Environment", True) Setting the key then calling SendMessageTimeOut(HWND_BROADCAST, WM_WININICHANGE, 0, "Environment", SMTO_ABORTIFHUNG, 5000, resApi) When my codes attempts to create the ocx object it gives a FileNotFoundException "8007007e ...Show All
Visual Studio How do I delete a debug project from VS 2005's Start Page ?
I know how to make a VS 2005 project disappear from the Start Page. I, simply, delete the project's files and that's it. I recently debugged a svchost app. Now it shows up in the Start Page, but I don't want it there. How do I remove a debug project from the Start Page I was told, in this thread : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=300505&SiteID=1 that "There should be a .sln file somewhere on disk. If you delete that file, then click on the item in the start page it will ask if you wish to remove that item." Indeed, there was a .sln file...*and* a .suo file in \Windows\system32. But, after deleting both the .suo and the .sln files, when I click the svchost project in the Start Page Project List, VS 2005 o ...Show All
Visual Studio Team System changing of project-properties
Hello! Does anyone know if it is possible to change the project properties through a command line command (or msbuild) I need this especially for the changing of the release/debug folder names before compiling the solutions, since all our c++ projects have the name WinRel instead of Release (historically). The problem is that the TFS doesn't copy the compiled files to the Binaries if the folders don't have their default names. Thank you! You should be able to use the AdditionalVCOverrides property to pass in VC++ project setting overrides (these are used to generate *.vsprops files during a Team Build build). See the following thread for an example of this: http://forums.microsoft.com/MSDN/ShowPost.aspx ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
Community Chat Is MS trying to throw away menu bar?
In IE7, classic menu bar is disabled by default. In Office 2007, there is not menu bar at all. Also the traditional toolbar is gone. I can't find a way to create my own custom toolbar too. What's happening I know menu bar is very classic and not pretty, but it is one single place that I am 100% sure that I can get all the features from a program. I don't want to lose it. Word isn't the only Office-client with the ribbon. How about PowerPoint Doesn't it make sense to add images, graphs etc objects to the presentation Besides, I often add graphs and diagrams to Word-documents, too. Makes architectures easier to describe and read. ...Show All
Visual Studio Express Editions Problems when writing to textboxes from txt-file
I brought this question up in another thread but the main question had allready been solved so I guess I better start a new thread. My problem is with a code that gives me the error " Object reference not set to an instance of an object". My code looks like this: Dim layerselect As String = layerbox.SelectedItem Dim strContents As String = My .Computer.FileSystem.ReadAllText(acadtroot + layerselect) Dim crlf() As String = {vbCrLf} Dim line As String () = strContents.Split(crlf, StringSplitOptions.None) Dim i As Integer For i = 0 To 5 Me .Controls( "L" & i + 1).Text = line(i) <-- Where the problem is pionted to Next ...Show All
Windows Forms help with combobox
hi all. my application is in c# winform .net2005. i have a very strange issue with the standard combobox. on my form i have a combobox. i set it's datasource,displaymember,valuemember. and then i wrote: cb.selectedvalue=1; (some value that exists in the datasource) BUT- sometimes the values is entered correctly and i can see it in the combobox, and sometimes the selectedvalue is set to null !!! why for q.1 -> in all cases, when i check the datasource,disaply and value member are setting correctly, even in the "sometimes" cases! but still, the selectedvalue is null, after i wrote: cb.selectedvalue=1; for q.2 -> i wrote cb.DataSource in a function, and i call it from the constructor of my form. n ...Show All
Windows Search Technologies Improving the users' experience of window desktop search
I am into design of interface to improve "users' experience" in using a software. I was studying the 2 Desktop search from both side, Microsoft & Google. While the great engineers of both company create a great product, I see that both are now offering a common function. As we know, Desktop search primary objective is to capture users for the search engine and the functionality of easy-search in our desktop is just additional functionality to ensure web search is readily available in our computer. What else the great engineers from Microsoft can add to Windows desktop to ensure it is selected over the other competing desktop search My suggestion is to add dictionary that will be available even the users are offline. As we k ...Show All
Windows Live Developer Forums WLM error
whenever i sign onto WLM it loads my contacts (sometimes doesnt even get that far) but then it just freezes and crashes, any idea whats up with it ...Show All
