Aseem Chiplonkar's Q&A profile
Software Development for Windows Vista Find in XPS How ?
Dear Sirs. Please Show us with a simple code, how to find string in XPS (DocumentViewer class in .net 3). If i want to make my find dialog, how we can do it is it posible with .net 3.0 Thank you in Advance. You'll need to traverse the XPS documents and search for the string in the glyphs. I'd look in the WPF samples under DocServices. This article might also help: http://msdn.microsoft.com/msdnmag/issues/06/01/XMLPaperSpecification/default.aspx ...Show All
Visual C# Where do I find...
I have been scouring the web for the better part of 2 hours now and cannot for the life of me find the answer to this question: Where do I find the System.Windows.dll I am looking for the System.Windows.Media namespce, which seems to be in that dll. I see the dll referenced in a lot of places but no explanation on where it might be located. Please help! I have installed .Net Framework v3.0 and Visual Studio 2005 Extensions but still no luck. I cannot find complete System.Windows. I want to use the System.Windows.Controls and some other classes in this namespace. Plz help!!! ...Show All
SQL Server Error Validating Any Check Constraint
Hey Guys, I just this day started using SQL sever 2005. I created a database and then created a table. Then I started adding some fields. I wanted to add a check constraint to one of the fields called state but I keep getting the same error. I right click on the field while editing the table and select check constraint. I then click add on the check constraint dialogue and in the expression caption I input the following: <code> @State In('CA', 'AZ', 'UT', 'CO') </code> I am using a book and have straight copied the above example from the book. However when I input the check constraint I get the following error; "Error validating constraint 'ck_myfirstdatabase' I have tried this with other field ...Show All
Visual Studio Team System Help: Invisible Dialog on Check-in
All, On a couple of machines we installed have encountered the Check-In Dialogs to be invisible. They are there and the buttons can be correctly selected (tabbing the correct number of times and pressing enter). You cannot see them, altho the cursor does follow the tab order around the screen. This is from within VS 2005 Team Suite attached to TFS. These machines do not seem to share much extra software in common and do not have lots of 3rd party software loaded. We are currently trying to reproduce this issue, but I am wondering if others have encountered this affect and if there is a solution available. I have searched the archives but have not found a similar issue... yet. Thanks in advance. James The dialog is most ...Show All
Microsoft ISV Community Center Forums ActiveX, ATL, Object library invalid or contains references to object definitions that could not be found
I had just discovered a critical prerequisite for when you want to create an ActiveX control using ATL that you want to use in an Excel document: The ActiveX control MUST support Connection Points. If you do not add Connection Points to your object, you may receive the following useless and misleading error message: "Object library invalid or contains references to object definitions that could not be found". Steps to reproduce: 1) Use Visual Studio 2005 to create a new ATL project. Use all default settings. 2) Use "Add Class" from the project's context menu to add an ATL Control to the project. Use all defaults for the object. 3) Compile the project. 4) Open Excel. 5) Add a Command Button. 6) Add the ActiveX c ...Show All
Visual C# Adding a 2nd Word Table
I am trying to automate word, using VS2005 C#. I can get text and ONE table in the word document, but I need to add text after the table and another table. How do I add another table/more text to the document Here'scode I have pared down as an example. It adds a line of text and a table (4 x 4) and attemps to add a second table except it puts the 2nd table in a cell of the 1st table. Thanks. Eileen object missing = Missing .Value; // Create a word object that we can manipulate Microsoft.Office.Interop.Word. Application Word_App = null ; Document Word_doc = null ; try { Word_App = new Microsoft.Office.Interop.Word. Application (); Word_doc = new Document (); } catch ( Exc ...Show All
SQL Server Cannot get CREATE LOGIN from a Windows group to work
I have created a database fronted by an ASP.Net application. It's all nice and simple, and I only need a very simple level of security (and even that is only as a protection against accidents rather than maliciousness). My intention is that users connect using Windows impersonation (<identity="true">), with the database creator having full access and the public group (I'm talking SQL groups here) having specific premissions granted on specific tables. If I set <identity="false"> on my XP box the application connects to the database as [MACHINE\ASPNET]. This is easy to set up access for - I simply do a CREATE LOGIN [MACHINE\ASPNET] FROM WINDOWS and then within the actual database do a CREATE USER [MACHINE\AS ...Show All
.NET Development Clickonce installer?
Is there any way to compile a program in C# Express Edition that would use the windows installer instead Or better yet, allow me to create just an exe for a console program It seems odd that my users should need to install a program that is just a simple console program and I hate having to zip up all of the additional setup files with the exe. There are setup/deployment project options included with Visual Studio, but they are only available in the the standard edition or higher. If you are using the express edition, you might want to consider a solution such as WiX ( http://wix.sourceforge.net ) to create a simple MSI-based setup for your application. Thanks! Aaron ...Show All
Visual Studio Express Editions NewLine()
Hi there. I am trying to develop an application which uses a serial connected device. Almost everything is working fine with the serial port object. My problem is that the serialport object sends one extra line feed, which terminates any receive of data. I would like to know how can I use the NewLine() property, so as to change the termination character to NULL. I would really appreciate any help of you. Thank you in advance... NM SerialPort.ReadLine() is equivalent to SerialPort.ReadTo(SerialPort.NewLine). So, if you always get an extra line feed, try SerailPort.ReadTo("\r\n\n"); ...Show All
Visual Studio 2008 (Pre-release) Apply 2 or more styles to an element
Is it possible to apply more than a single style to an element Say I have two controls that basically use the same style, except for minor differences. If I create and use 2 styles which are mostly identical, there's a lot of repetition, so it'd be good if a common style can be applied to both, and then a secondary style can be applied to each element specific to its needs. Is this possible Obviously I could directly set element attributes to achieve some of this, but then what's the whole point in using styles Alternatively, can styles inherit from other styles If so, we could have the base style, and then each element can have its specific style derived from this common base style. That would be useful too. Thanks in advance. ...Show All
SQL Server Newbie Advice Installing SSRS
Hi, I've decided to install SSRS (2005) on my windows XP machine. I'm not very familiar with IIS (i'm currently using version 5.1) and I think between IIS and SSRS, i've managed to break something. I've been looking at various articles to try and get some clarity on my predicament. However, i'm not getting any joy with them.s I have located the logfiles (which I can provide). Unfortunately, I have no idea how to intepret the information contained therein. Can anyone help Many thanks in advance Clint Can you open your RSWebApplication.config file(%ProgramFiles%\Microsoft SQL Server\MSSQL.x\Reporting Services\ReportManager\RSWebApplication.config) and check the entries for ReportServerUrl and ReportServerVi ...Show All
SQL Server Oracle DSV: Problems creating relationships with reported inconsistent datatypes.
I am adding tables to the DSV and adding the relationships but SSAS keeps complaining that the data types of the FK and PK tables do not match, even though I can see that they are in fact the same, ie NUMBER with no scale/precision set. Presumably this means Oracle uses a default Any ideas as to the fix I have created a NamedQuery as a SELECT * FROM <table> and this seems to work but does seem to be a hack and is very annoying! Searching connect, I found at that this is a bug. however, it was reported as fixed in SP1 but I am using SP2 CTP.. so I have added a new bug report for this under SP2. the only workaround is to go back and edit the XML file. (View Code in the solution explorer context ...Show All
.NET Development error: stored proc expects param @xxxxx not supplied
I created a stored proc with 2 insert queries. Both queries have parameters. The first query inserts a row in first table and second query inserts a row in the second query. In addition, the first query gets the scope_id from the first table and inserts this same scope_identity in the second table along with the other supplied params. Here is the stored proc: (accountNumber gets the scope_identity) ALTER PROCEDURE dbo.InsertAccount @AccRisAsse bit, @AccHldBll bit, @accountNumber bigint output, @prpDateBir datetime, @prpSinNmbr char(15) AS insert into TblAccount(AccRisAsse,AccHldBll) values(@AccRisAsse,@AccHldBll) set ...Show All
Smart Device Development how to get a form object through the form name
Hi, I need to get a form instance, by supplying the form name i.e, i need some thing similar to Class.forName() in Java. I tried it using System.Type.GetType() method passing the form name as object. But the prob here is i'm getting an exception saying "System.Type can not be casted to a System.Windows.Form". How can i get the form object based on the form name. Any one plz suggest. Thanks, Hari You must be using NETCF V1 which has no Name property so it can't be accessed because it does not exist. ...Show All
Visual Studio Tools for Office VSTO SE + Office 2003 + VS 2005 Pro
This is more of a Getting Started type of question. For some reason, I'm not finding any kind of basic tutorial that covers building an Add-In using VSTO SE (Beta) + Office 2003 Pro + Visual Studio 2005 Pro. The document that comes with VSTO SE Beta describes how to build a Ribbon, Custom Task Pane and a Custom Form Regin but all for Office 2007 components. I'd like to build an Excel 2003 add-in (or whatever) that displays a button to my end-user. Once the button is clicked I'll grab some data from the current/active worksheet, send the data to a web service and then take the results of the web service call and poke it back into the current worksheet. I've been able to do this in old school VBA (plus the now unsupported SOAP Toolkit) b ...Show All
