smartPace's Q&A profile
.NET Development Accessing COM+ from a different machine
Hi Guys, I need to access a COM+ which is located on a different machine. What is the correct procedure to do it I tried exporting the COM+ as an MSI file, and installed it on my comp, and from dotnet when i try to add a reference to the COM object(which i installed on my comp), an error is shown saying 'Type Library was exported from a CLR assembly and cannot be re-imported as a CLR assembly'. How do i reference to that COM ...Show All
SQL Server How to fill Report Header/Footer with data?
Hi, I would like to fill my report Header/Footer with data that comes from my report Dataset. I have tried almost everything and I can't get it to work! I used a table, but it only works for that last page! I can not use Field values in Header as well as Footer! So, what's the solution. Thanks. You can reference report items in the page header and footer. So if you have a text box that contains data from your data set in the body of ...Show All
Visual Studio Team System How to avoid Designer classes
How do we avoid throwing warnings for Designer class variables like resourceMan, resourceCulture, temp etc. And how to avoid system generated methods like .cctor etc For cctor's, check whether a Method is actually a StaticInitializer, eg: if (method is StaticInitializer) return null; To eliminate certain members, you need to examine the member.DeclaringType. The easiest thing to do is look at Member.DeclaringType.FullName and com ...Show All
Visual Studio 2008 (Pre-release) Display image from http-address
Hi all, i want to display a image from a http-address but when the image is not there the complete app cancels and shows a 404 Not found ecxeption. I have no chance to catch these exception, without cancelling the app. Is there a way to check for the image before Displaying it thanks, Herbert An idea could be to try to download the image, and if you are able to get it, that mean it's ok In th ...Show All
SQL Server Implementing co-related queries with EXISTS in MDX
Hi, I am very new to AS 2005 and doing my 1st project of reporting. The current application is based on T-SQL queries running against a OLAP database. Me n my team has responsibility to change the current application and create cube & write MDX queries to get the required data. In T-SQL; we are using co-related queries with EXISTS clause. Can someone tell me how to implement same business rule [that we are currently implemented using c ...Show All
.NET Development Urgent Wrapping OleDBDataReader into IDataReader
hi, i am having some problem while executing the following lines; OleDbDataReader olereader = dataAdapter.SelectCommand.ExecuteReader(); IDataReader dataread = olereader ; the error occurs at second line saying OleDbDataReader must be wrapped into IDataReader before using . can anyone help in this regard. thanks in advance. why don't you do it like this: IDataReader dataRead = dataAdapter.SelectCommand.ExecuteR ...Show All
Visual Basic Mysterious Message box
For some strange reason whenever I use a messagebox.show command the said message box is blank. All windows updates are loaded on. VB.net 2003 has been uninstalled and reinstalled. Windows has been reimaged also. Weird I know. ANy Ideas Can you provide any more infomation on what you are trying to do, are you creating a windows application Does this occur on every project or just this project or just ...Show All
Visual Basic Merge files
In the old dos days you could combine 2 files as save to a third file: copy file1 + file2 file3 It still works in a dos shell. I did this: Shell("copy " & file1 & " + " & file2 & " " & file3) I got an error that file3 cannot be found. I know it doesn't exist I want to create it. So I created a bat file: copy %1 + %2 %3 and called it as such: Shell("ccopy " & file1 & " " & file2 & " " & file3) I s ...Show All
SQL Server Modifying more than one node with XQuery modify
I have an XML document containing large numbers of elements Many of the elements have a status attribute I want to be able to update all the status values at once in the document to a single value The xquery modify statement using 'replace value of' only permits update of a single node Is there a way using a 'for' statement to get round this problem If not then what is the best way to achieve this Currently the options I can see are - mul ...Show All
Windows Forms Saving Files From ListBox
How might I go about saving items from the listbox to a specified area on my hdd I have it showing files from a LAN, then after selecting a file, how do I save it I get no prior errors to running the program, (i.e., no underlined blatnatly wrong text) for the following: FileCopy(Text1.Text & ListBox1.SelectedItem, "C:\" & ListBox1.SelectedItem) But after running it, selecting the item in the listbox1, and selecting copy, I ge ...Show All
SQL Server What's magic about DT_STR and size 50
Okay, this is probably my own stupidity but here goes. I am trying to make a very rudimentary package. I've got a data flow that has a flat file source. This source has fields delimited by the | symbol. I give the fields in the flat file source names. The first field is always exactly 1 character. When I use the advanced editor to look at the fields' properties, I see the first field, called ProductLine, is considered to be of SSIS internal data ...Show All
Windows Forms Is there a Non-Databound Grid?
I'm looking to use a grid to display information. It would work like a list box but would have columns and headers. Surprisingly, I don't see anything I can use in VB.net. Can anyone suggest a control Thanks. The ListView in Detai ...Show All
Visual Basic C# style documentation
Is there anyway in basic to do C# style documentation ///<summary> ///This is a method ///</summary> ///<param name="test">This is the test param</param> ///<returns>some value</returns> ...Show All
Visual Studio VS locale ID
Am I right, thinking, that DTE.LocaleID is the integer corresponding to VS localization If yes, where is it possible to get mapping from the values to languages Yes, DTE.LocaleID is the culture identifier for the current instance of Visual Studio. To get a mapping to language, use the System.Globalization.CultureInfo class: // note that this code only works with .NET framework 2.0 CultureInfo cultureInfo = CultureInfo.GetCultureInfo(DTE.Lo ...Show All
Visual C++ Running the MFC Sample Programs
Anyone with Visual Studio 2005, can you get the MSDN sample MFC programs to run They are in zipped format, and can be downloaded from the help...for example, if you search CSpinButtonCtrl you can get to a link that downloads a spin control example program. When I unzip the zip file, then open the solution in Visual Studio and try to build it, the IDE skips the build, and all of the options (in the debug menu) that normally let you run a built pr ...Show All
