Victor G's Q&A profile
Windows Forms How to detect acrobat reader with c# ?
How to detect if acrobat reader is installed on my machine from a winform application Thank you. i thinks you may search Reg, to find if the key existed and you may get the version of the soft ...Show All
SQL Server Matching relational records. Is it possible using Data Minig?
Problem: I am working on a price comparison system which matches the best prices for a purchase (or an order) from exisiting purchase data. The order is stored in multiple tables including order details (stores major items purchased: e.g., PC) and order sub-details (optional items purchased with the major items: e.g., speakers, backup device, webcam etc.). There could be a number of major items in an order and each major item could have multiple related sub items. The other variables that affect the price include trade-ins if any, sales going on at the time of order, number of units etc. Now, for any new configuration (major items/relate ...Show All
Visual Basic Creating MS Word document without using automation
Hi All, I need to create MS Word document (using the new native XML capabilities of Word 2003) without using automation. Can anybody provide some smaples/links to samples to achieve the same. Thanks & Regards, Prash Hi Jamie, Thanks for the reply. I really appreciate your interest in the issue. I have now deviced a method to generate the document actually have created a class that can mimic MS Word in generating a document using some methods like WriteText(usingStyle as String, text as String) which can ...Show All
Windows Forms problem about TreeView.SelectedImageIndex property
hello, I have problem. The TreeView, I can't make it work! the TreeView.SelectedImageIndex property, why is it there I don't need or want the image that belongs to the selected treenode to be changed. I just want it to keep in it's original state. But whenever a node is selected, it's image changes, and I can't find out a great deal I can do about that! I tried to draw the treeview myself, but it was irritatingly not simple enough. Can anyone give me any solution ImageList_AddIcon(hImg1 , LoadIcon(hInst , MAKEINTRESOURCE(IDI_CLDFLD))); ImageList_AddIcon(hImg1 , LoadIcon(hInst , MAKEI ...Show All
Visual Basic Determine Dll Types Programatically
How can you programmatically determin if a dll is an assembly, win32 or activex Thanks for the feedback. I double checked with our team and there is no API call in .NET that can give you this information. You would need to write custom code to crack open the DLLs and see what they are. I've passed this on to the product team for consideration in future versions. If you have the time and interest, I suggest you file a suggestion on the product feedback center and reply with the ID number. Thanks again. Paul Yuknewicz ...Show All
Visual Studio LogonInfo, linked parameters, different databases, subreports, Oh My
I'm having a bear of a time getting reports with subreports to function correctly. I have followed all of the directions for logonInfo updates. The original report running under v9 only has to have the first four parameters filled, from there 9 other linked parameters are supposed to be filled. I started with code that we have in production (v9). This code ran fine when running against the server that the report was designed against. But when compiled in CR .net 2005 the linked parameter values kept prompting. Then I tried to hack my way through that problem and set all of the parameters (13) instead of just the 4 we normally send. Stil ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed - Unable to connect to the Windows Sharepoint Services
I followed the latest installation guide TFSInstall-v60208.chm closely to create a 2 VM system. 1 VM for the DC/AD server TFSDCAD and 1 VM for the Apps tier TFSAPPS with SQL Server 2005, Sharepoint Services 2 and TFS I installed Sharepoint Services SP2 and did NOT configure it. Next I verified the Sharepoint Services install and saw the "Under Construction" page. I then went ahead installing TFS RC1, installed successfully (it said) I can connect from VSTS loaded on TFSAPPS to the TFS but creating a new team project produces: TF30177: Team Project Creation Failed Error: Unable to connect to the Windows Sharep ...Show All
Visual Studio Tools for Office Desperate for help - getting my Add-In to run
Hi; Ok, I have built two new test Add-Ins, one under VS 2003/.net 1.1 and one under VS 2005/.net 2.0. Both run fine on my system (the .net 1.1 requiring winword.exe.config set to 1.1). But my existing Add-In which I have built and tried to run under both VS 2003 and VS 2005 - nothing. It doesn't start, it never even hits the object constructor in the debugger, and Word says nothing. How do I find out what is wrong thanks - dave Have you checked that the Addin isn't black listed in the Help->About under disabled Items your solution maybe listed if this is a COMAddin if this is VSTO Template then check your security has Full Trust for ...Show All
SQL Server Encrypted columns and searches (partial and full)
Hi, For those implementing encrypted columns, what is the recommended approach when allowing users to also do partial searches on encrypted data (ie email or creditcard info where the tables contain millions of rows). I understand one cannot have the encryption without performance impact, but the searches can be 10 to 20 times as long as when the info is stored in normal char(20) columns. Just looking as a way to try and lessen the impact. Thanks Prompted by your question, I just posted a new entry to my blog about how to enable searches on encrypted data. The entry is at: http://blogs.msdn.com/lcr ...Show All
Visual C# SortedList<> best conversion
Hi, what I'm trying to do is cast SortedList<int, int[]> into SortedList<string, int[]>. I have the function of int-string conversion (eg. (int+1).ToString()), so I thought I would be able to use Array.ConvertAll<>, however I haven't managed to do that way on SortedList. The second Idea was casting the list into SortedList<object, int[]> and manually go through the Keys collection, arr.Keys[ i ] = ((int)arr.Keys[ i ]+1).ToString(), however explicit cast to SortedList<object, int[]> is not allowed either. How to do that the simplest way The most st ...Show All
.NET Development How to pass custom object to WebMethod?
Want to pass my Currency entity object to a webmethod. I have marked the object as Serializable. However, another object with the same class name Currency(generated by VS.NET 2005) is required when I try to use the webmethod. Why How can I pass my entity object Thanks You can also use the XmlInclude attribute to specify the type that you want to use instead of the generated one. Daniel Roth ...Show All
Visual Studio Express Editions Network Applications with VB2005 Express a few simple questions????
Hi There, I know that this might sound like a foolish question but... I'm new to this programming so please bear with me Here Goes... If I want to develop a client/Server application, like say a front end to look at a large database and deploy it out to many clients across a LAN (not an Internet solution) then can I do this with VB 2005 Express edition I know that the SQL Express edition cannot be deployed on the network server but If I were to develop the APP in VB Express could I then use SQL 2005 Standard edition or would I have to rewrite my code to connect this app up... or to put it another way,&nb ...Show All
Visual C# MathServiceItem_cs.wsdl not found
Attempting to execute a PortCollection statement I got a runtime error message that a file was not found. The debugger was looking for it in C# bin directory. I've searched my entire computer--no file under such name. Could not find in at any MS websites. These code snippets are all over the web not only in the forum. How do I get hold of... MathServiceItem_cs.wsdl Thanks in advance. It definitely worked but it raised many questions as to why the file is not available, also there are other related files MathService_CS.wsdl MathService_New.wsdl I replaced ll of them by the file you've recommended. Thanks. ...Show All
Visual Studio .net framework and crystal report
hi! i face a problem after i using the .net 2005....below is my situation: i have 3 projects... A project is using .net 2002 B project is using .net 2003 C project is using .net 2005 (new project) A and B project already using in a PC, and this two project are complete and no probelm. but after i install the C project in to the same PC, an error occur for the A and B project, error is crystalDecisions.CrystalReport.Engine Load report failed. so i already done some testing, i found that when i uninstall the .Net Framework 2.0 will solve this error, but of course after uninstall .Net Framework 2.0 the C project will fail t ...Show All
Windows Forms Disabling windows forms designer temporarily
Hello every body As you know when designer code grows and becomes giant its so bothering to modify the source code and then turn back to the designer (It consumes alot of time). The question is "Is there a way to disable windows forms designer for a while " Thanks in advance . I'm not entirely sure I understand what you want, but you set the code editor the default by doing the following: In Solution Explorer , right-click a Form and select Open With... In the Open With dialog, select CSharp Editor and choose Set as Default and then OK Now everytime you double-click a form in Solution Explorer, the ...Show All
