Jaldert's Q&A profile
Visual Studio 2008 (Pre-release) How to use XPSViewer in Win32 based applications
hi: I have a few qeutions to ask : a)Our company's software(win32 based application) would spport xps file format, viewing and wirting the xps file. Could the XPSViewer be embeded in own software to view the xps file if can do, how to do If can't, how to support to view the xps format file b)What are difference between win32 based application and WPF application Could I use the new API classes under win32 based application such as DocumentViewer, XpsDocument and so on. We will be shipping an out of band native code based viewer. This viewer will implement Windows' iPreview interfaces. You can us ...Show All
Visual Studio Tools for Office ItemAdd Event Problem
Hi all, Currently i am doing development in VSTO for outlook. I have encounter this problem, where the ItemAdd event only trigger only once and subsequently the event is not trigger anymore. What could be the problem Below are some code which i have use: I have store the MAPI folder in a linkedlist on the application start i run this method to add it the event. private void addOtherFolderEvents() { try { LinkedList<MAPIFolder> selectedfolder = getConfig(); IEnumerator enu = selectedfolder.GetEnumerator(); while (enu.MoveNext()) { MAPIFolder mp = (MAPIFolder)enu.Current; ...Show All
Visual Studio Team System Error viewing word document from changeset or source control item history
If I try to view a word document associated with a change set or view the history of a word document and choose to view an older version, I get the error message: "No application is associated with the specified file for this operation" However, if I choose to view the latest version of the file from source control explorer, it works fine. Anyone got any ideas on what I need to do to get this working Thanks, Rod For everyone's information. Answer to this thread posted here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=69571 ...Show All
Visual C++ debugging: where are the variables?
Let me start by saying that I am a beginning C++ programmer and am very new to Visual Studio 2005, so please forgive me if this is a silly question. When running the debugger on a simple program such as the one listed below, I find that it doesn't bother to display anything for most of the variables, and even for the variables it does display for, it seems to be garbage. #include <iostream> using namespace std; void main() { const int arraySize = 12; double sales[arraySize] = {0}; int count = 0; double smallestSales = 0; int smallestSalesMonth = 0; for (count = 0; count < arraySize; ++count) { cout << "En ...Show All
Windows Forms is it possible to control vertical scroll datagrid with two push buttons??????
Hi, I have been looking for in this forum any example or any help but i haven’t found any thing. I have a windows application using C# with a datagrid, I want to control the horizontal scroll and the vertical scroll with two buttons, 2 buttons for the horizontal and others two for the vertical. The ventical’s control is working with the two buttons. I have used this .dataGrid1.CurrentRowIndex But my problem is the horizontal control I don’t know how I can control the horizontal scroll with two buttons. is it posible Any example Any idea Others questions: how i can do to hide the horizontal and vertical scroll bar in the d ...Show All
Visual Basic The Object invoked had disconnected from its clients
After creating its reference in the components, in the design mode, while I'm trying to place a user control (ocx) from tool box on to a form in the project I'm receiving the following error: "Run-time error' -2147417848(80010108)': Automation error The object invoked has disconnected from its clients... Any help regarding would be greatly appreciated… Note: This code actually worked several times all at a sudden after some minor changes I'm receiving this error... thanks…Ski123 Hi Probs worth chec ...Show All
Visual Studio "The class diagram service failed to load."
imediately followed by another message: "The operation could not be completed". I got the two messages when I create a new C# project and then choose "View Class diagram" on Form1.cs. After this happens I can't open either code or designer window for Form1! I'm using Visual Studio Team Suite RC (8.0.050727.86) Asim, The solution was not simple. I had to manually delete all references to older version of .NET studios and had to delete older version of assemblies. They were all left behind. Unfortunately, I cannot help you since I don't remember the version numbers of assemblies t ...Show All
Windows Forms How to uninstall a ClickOnce application silently?
I see that the unintall string is like rundll32.exe dfshim.dll,ShArpMaintain appname.application, Culture=neutral, PublicKeyToken=d67ac05a79f37e8a, processorArchitecture=msil But that brings up UI. I have a need to silently uninstall a ClickOnce application. Is it possible to do this Hi Neo, this release of ClickOnce does not provide programmatic support for uninstalling "installed" apps. There is a way to purge the online application cache: use "Mage.exe -cc" or ClearOnlineAppCache API exposed via dfshim.dll. For installed apps though you have to go through Add/Remove Programs UI. Regards, Sameer ...Show All
Visual Studio Team System Error while generating Bug rates report
Hi there, I'm getting the below error while generating 'Bug Rates' report for my Team projects. Any idea anyone Thanks, Anu An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'AreaPathPath1'. (rsErrorExecutingCommand) Incorrect syntax near 'Measures'. Incorrect syntax near 'WorkItemType'. Hi there, I am still waiting to get help for this error, We are going to have our server installed for VSTS client to use team wide, but before that it would really great if we could make reports work. Thanks, Anu ...Show All
Visual Basic dataset.GetChanges()
I need create a new dataset with changes insert/delete/modified. My code work with insert and modified. But with rows delete not work. After delete row the dataset.GetChanges contain one blank row . The code for Sub Update: dataset.EndEdit() If Not dataset.HasChanges Then Exit Sub Dim dataset1 As DataSet dataset1 = dataset.GetChanges() Me .DataGridView1.DataSource = wdataset1.Tables(0) conn .Open() adapter.Update(dataset, table ) conn.Close() Why the GetChanges() or GetChanges(DataRowState.Deleted) do not work with delete rows I resolve my self. For get delete rows need ...Show All
Visual C++ I am a newb: error LNK2001
Hi, I'm very new in visual studio c++. Recently, I'm involved in a school project that requires me to handle some c++ coding. I keep getting this compiler message. --------------------Configuration: multi - Win32 Debug-------------------- Compiling... multiTest.cpp Linking... object.obj : error LNK2001: unresolved external symbol _arVrml97LoadFile ../../bin/multi.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. multi.exe - 2 error(s), 0 warning(s) I wonder wat's the problem cos I have checked all my INCLUDE and LIB directories. Though I suspect that the prob could be due to missin ...Show All
SQL Server Cant see image
Hello, my image is stored on the database as an URL, not binary. I put a textbox and the url is show on the report, then I put an image and this expression =(ReportItems!dslogo.Value) dslogo is the name of the textbox where the url is. but I dont see my image yet. Its external and no I dont see it in the preview neither, when I copy paste the url in the browser it shows me the image. ...Show All
SQL Server Can I use ALTER LOGIN in a stored procedure???
Can the ALTER USER statement be used (without a hack like using EXEC) in a stored procedure I know that the sp_password system stored procedure can not be. Additionally, it is being deprecated anyway. I guess what is boggling me about my attempts so far relate to the errors I am getting due to the user being specified not being in quotes in the syntax. All of the searching I have done so far have come up lame so far; the only examples I have found about it were in scripts that create other scripts for transferring users and other administrative tasks that would be run from the query window, but not from an application. To be complete as po ...Show All
Visual C# Operator '&&' cannot be applied to operands of type 'string' and 'string'
I'm totally new to C# so your help is much appreciated. Here's what I have. string strSummary; if(txtPhnNumber.Text != "" ){ strSummary += "\nPhone Number: " && txtPhnNumber.Text; } The error comes back saying, " Operator '&&' cannot be applied to operands of type 'string' and 'string' " whe rebuilding the site. I'm using Visual Web Developer Express edition. Hi, if you want to "add" (join) two strings you need to use the operator +: strSummary += "\nPhone Number: " + txtPhnNumber.Text; ...Show All
Visual C# Cursor problem
I have a project with two namespaces, and all I want to do is load a cursor resource in one of them. Sounds simple doesn't it The cursor has it's Build Action property set to Embedded Resource. I use the following code to load it: Cursor = new Cursor(GetType(), "Rectangle.cur"); This works fine in one namespace, but fails in the other. I receive an unhandled exception of type 'System.NullReferenceException'. Additional information: Object reference not set to an instance of an object. Can someone tell me how to overcome this error please Thanks! The constructor you are using, tak ...Show All
