jbattat's Q&A profile
Visual Studio Tools for Office Distribution requirements
Once I build an application using VSTO and package it for distribution, what is needed to run the application on the target machine Let me take a guess: 1. VSTO Runtime 2. Office Pro and or a standalone version of Word or Excel 3. Thanks in advance. In addition to Cindy's list You may also check out the following tool: Microsoft Visual Studio 2005 Tools for Microsoft Office System: Microsoft PSS VSTO 2005 Client TroubleShooter http://www.microsoft.com/downloads/details.aspx FamilyId=C9FB6A54-8069-4918-A6F9-E744928DFAC3&displaylang=en ...Show All
Smart Device Development Makecab Umlaut character problem in filename
Hi, I wrote a project which will download a cab file from the web and extract (extract utility) and replace the files on the local machine. So before replacing the files I make a cab of the old files with makecab utility. For this i use a ddf file and makecab with the option /f and the ddf filename. The problem is that whenever the file name contains any umlaut character the makecab displays an error file cannot be found. But if i save ddf file again in ASCII format and then try making a cab it works. But i cannot do this as certain characters cannot be represented in ASCII and i cannot avoid the umlauts as I am working in germany, where umlauts are comman. Is there any solution to it. The project is in VB.Net 2005. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Building a Class repository but I have Namespace issues.
You'll have to forgive the no doubt "simplicity" of this question but please bear with me. I am currently writing lots of small projects to learn different aspects of how C# and XNA both work. This is pretty much the first major involvement in a class based language that I have really dug into and it is certainly one where I have encountered namespaces and had to take notice of them. My plan is to build a set of classes that any new project can have access to (gameObjects, cameras etc...), ideally in a central location to all projects. Every class I create has a Namespace associated with it which means every time I try and use it from a different project, I have to add the class to the project and then change the Namespace. ...Show All
Visual C# Reading from App.Config c# 2.0 console application
http://msdn2.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx The above link tells me to use the ConfigurationManager class to read appsetting elements from the app.config. When I do this VS2005 C# 2.0 console application the ConfigurationManager class is not reconised. Can someone please point out this simple command. Syntax used: using System; using System.Collections.Specialized; using System.Collections.ObjectModel; using System.Collections; using System.Text; using System.Configuration; using System.Data; using System.IO; string configValueString = System.Configuration. NO ConfigurationManager someone please tell me how to read xml fro ...Show All
Visual C++ using some old MFC code in a managed dll
Hi - I have some low-level C++ code to interface with a chip. The code works fine to open and download a configuration file. However, I want have that functionality from a VB app, so I'm trying to create a managed C++ dll that I can reference, pass the file path from VB and let the old C++ code process and download the file. The C++ code uses afxwin.h with all the old MFC classes, e.g. CString DownloadDlg::GetFileContents(CString fileName) { CFile file(fileName, CFile::modeRead); CString contents; // Create the buffer DWORD fileLength = (DWORD) file.SeekToEnd(); char * pFileContents = new char [fileLength + 1]; file.SeekToBegin(); // Read it in file.Read(pFileContents, fileLength); pFileContents ...Show All
Visual C# Application with Input files..
i want to create application that support input of Files i dont mean Drug and Drop (not sure anyway) i want to create the program which u can do Application.exe Test.text which returns the info about the Test.text file which Classes needs to be used the program is using Registry Key so it can be using by press a file or directory. For Example of Registry Value Application.exe "%1" Thank U in Adavnace.. :D well you need to look at the arguments passed into your app either via the main method or via Environment.GetCommandLineArgs() method, which returns you a string[] array of parameters passed to your application. a small example... static void Main( string [] args) { if ...Show All
SQL Server Transact-sql code does not work. HELP!
Hi all, I am new to transact-sql and hoped that someone here might be able to help. I have a db with a field called "part" ... part contains text in the format: xxxxx-xx-xxxxx (the number of x's before or after each hyphen vary) such that I could have xxx-xxxxx-xxx as the part. Someone wrote this transact-sql to take my current "part" field and move it to three different part fields ... a,b,c If xxxxx-xx-xxxxx was the part in the original db, then a would contain xxxxx .. b contains xx ... c contains xxxxx Make sense Here is the code. It doesn't work and I can't seem to figure out why! It looks like it is just trying to find the hyphens and cut out the text from that... but it fails with an error that say ...Show All
Audio and Video Development Advanced Content Playback on HD-A1
Hi All, I am having trouble getting an advanced content application to play once burned on a DVD-R and inserted into the Toshiba HD-A1 HD DVD player. Video and audio play fine using this method, but once the advanced content object is reached the player stops playback and gives an error. Does anyone have any advice on this We have tried the samples posted here and we get the same results. Thanks. Have you run your project through the new HDDVD Validator that ships with the Jumpstart package Do you actually have a PrimaryAudioVideoClip that points to a valid multiplexed EVOB file containing a compliant bitstreatm, etc. Note that the spec requires you to have video, even though iHDSim does not. ...Show All
Smart Device Development free unit testing tool for .net compact framework 1.1
Hi , can anyone let me know the commonly used unit testing tools for .net compact framework thanks in advance The only unit test framework I know of was developed by the Patterns and Practices group. It's designed to be used with VSTS and NETCF 2.0, but the basic ideas should work with NETCF 1. http://www.gotdotnet.com/codegallery/codegallery.aspx id=5bef2b5f-476a-488c-8d55-9d41666a36f3 It basically works by using reflection to identify test functions decorated with a custom attribute. Once you've identified the test functions, you execute them in order. Depending how your architect your engine that calls the test methods, you can decide how to handle failures. If the whole test should stop at ...Show All
Visual Studio Team System Visual Studio Code Name "Orcas" - September Community Technology Preview (CTP)
This release contains the following new capabilities for the System Designer in Visual Studio Team Edition for Software Architects: - Add endpoints directly to a system definition. - Define and edit operations for Web service endpoints on a system diagram. Here's the link: http://www.microsoft.com/downloads/details.aspx FamilyID=82243606-d16d-445c-8949-9ee8c10cda2e&DisplayLang=en To submit feedback on this release, see the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=597397&SiteID=1 ...Show All
SQL Server Error importing data from oracle database to an SQL database
Hi! When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error: Could not connect source component. Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used. Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38. (S ...Show All
SQL Server Consolidating multiple lookups
In many of my packages I have to translate an organizational code into a surrogate key. The method for translating is rather convoluted and involves a few lookup tables. (For example, lookup in the OrgKey table. If there is a match, use that key; if not, do a lookup of the first 5 characters in the BUKey table. If there is a match, use that key; if not, do a lookup of the first 2 characters... You get the idea.) Since many of my packages use this same logic, I would like to consolidate it all into one custom transformation. I assume I can do this with a script transform, but then I'd lose all the caching built into the lookup transforms. Should I just bite the bullet, and copy and paste the whole Rube Goldberg contraption of cascading look ...Show All
Visual Studio Team System History font is ugly
Hi Forum, does anybody know if its possible to change the font & size in the WorkItem->History tab, when showing the headings with the timestamp & initials, e.g use the same font size as the history details Cheers, You can change the formatting by using the formatting tools built into Visual Studio. The menu command to show the formatting toolbar is View; Toolbars; Formatting. Let me know if this helps. Jeff McKune ...Show All
SQL Server Weird results when printing a diagram in SQL Server 2005
Hi all, I have a diagram that I'm trying to print. I'm getting a weird result on paper. I have 3 tables on the same paper. I use the standard view mode in order to see "column name", "condensed type" and "nullable" columns. When the print comes out, the first 5 rows of the "column name" column are masked by some sort of drawing. It's as if there was another table on top of the one I'm printing, like you can see the bottom right corner of it just hiding the 5 rows of the "column name" column. What is even more weird is that have the exact same problem on the 3 tables I'm printing. This "drawing" appears to be of fixed size because as I increase the width of the first c ...Show All
SQL Server Fields selection criteria made by user
Hi, I am new in implementing reports with reporting services but i hope someone here will be able to help out of that problem. I already have a report (DataSet: select * from table1 ) on a server that users may render directly from a program written in VB.NET but I need to give them the possibility to put a condition on a column to filter the dataset result, like a WHERE CLAUSE. I don't know in advance the selected column name, so I suppose that I have to modify the SQL text command to incluse the text condition("Where code = '008' " as an example) before processing the report. How can I do that in code Thanks a lot. One way you could do it, not saying it's the best performance t ...Show All
