AntonioP's Q&A profile
Visual Studio Tools for Office Debugging of VSTO document
Hi, Can anyone help me regarding debugging of a VSTO document. I am trying to open a word document created using VSTO. When I double click the .doc file it gives me a error message with some 2-3 lines of info. It specifies a call to a method which existed earlier in the template. To make myself more clear, the particular function has been removed totally from the system, but it still is somehow associated with the document. If I create a new document with my changed template and try to open it, I do not get any error message, and everything works fine. I basically need some way of debugging the document. regards, Pankaj. Thanks all for the answers. It turns out the docs we were looking at in our dev location ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateDevice fails...
when using using D3DDEVTYPE_REF, though, its fine with using D3DDEVTYPE_HAL, likewise, when testing on other machines, HAL doesnt work, and REF does ! I'm confused as hell now, so for the sake of my sanity, can someone look at this and tell me where I'm going wrong:- bool Init3D(HWND hWnd,int screenWidth,int screenHeight,D3DDEVTYPE deviceType) { d3d = Direct3DCreate9(D3D_SDK_VERSION); if (!d3d) { MessageBox(0,"Cannot create an instance of an IDirect3D9 object.","Error",MB_OK); return false; } D3DCAPS9 caps; d3d->GetDeviceCaps(D3DADAPTER_DEFAULT, deviceType, &caps); int vp = 0; if( caps.DevCaps & D3DDEVCAPS_HWT ...Show All
Visual Basic Changing Disabled Controls ForeColor
Hi, Is there an "easy" way to change a control's ForeColor when it is diabled Yes, I know that this goes against the Windows standard. On our forms, we have buttons with a dark blue background and a white foreground (the design is dictated by marketing). When the buttons become disabled, the ForeColor goes to a dark color making the button unreadable. Thanks! Hi, So I was halfway through testing my new custom button class when I ran across the BackgroundImage property. It turns out that if I use a default button, set the background image to an image containing the backcolor I want, and change the ForeColor to something appropriate, everything works like I want to. ...Show All
Visual Studio CR Licensing Requirements
I am in the planning stages of moving a fairly large app from Access to ASP.NET 3 / C# / SQL Server 2000 and am investigating report generators. I am the sole developer of the app outside of testers and sporadic subcontractors. The new app will have both a Win forms solution and a web forms solution. Using the CR which came with VS 2005, I am wondering what the licensing requirements for my client would be. There will be up to 40 users or so on the Win forms app, and maybe 20 more or so on the web forms app, but I would think that only one or two web users would be connected at a given instant. On the Win forms side, the generation of reports and spreadsheets is pretty intense, so it is easy to imagine up to 20 or so generating reports ...Show All
Visual Studio Tools for Office Filling data islands on servers
Hello guys, I'm new at VSTO but have worked some with non-vsto automation of office before and I must say VSTO seems to make it much simpler. I will first describe what I want to do and then my questions. I have a web application that will store a number of documents(both Word and Excel). The user will click on a download link for a document and my idea is that the document be populated by some meta data from the web application(project id, name, location etc) and then the user is prompted by a download. This is all that will be needed in data manipulation, I will not need to think about updating the database from the document. My intention is to set some [Cached()] strings that are updating bookmarks/Ranges, I prefer not to use data sets ...Show All
Windows Forms taking variable from Public Form1()
how can i reach initial variable from functions_ public Form2() { InitializeComponent(); string[] dizi = Directory.GetFileSystemEntries(@"d:\deneme\"); int tanedosya = dizi.Length; kayit[,] b = new kayit[tanedosya,300 ]; //her olcumun 7000 olcum de eri olabilir b=sinifa_gonder(b); } public void k() { i need "b" in here.. } ...Show All
SQL Server How to create database having userid and password
Hi, I am using the sql server for creating the database. I want to create the database which is having userid and password. This I require since I wanted to restrict acces to database and also only authorise user to database can use the userid and password created at time of creation of database. So how can I create the database which is having userid and password Hi, But I think that the user who creates the database has the right to decide the users of the database. Or can u give any alternative way to protect the database from other users. ...Show All
Visual C# Intellisense filter?
Is there anyway to filter intellisense based on events, properties methods In other words, lets say I know i'm looking for a property in an object, I'd like to view only properties and not everything through intellisense... is this possible The Whole Tomato Visual Assist add in supports this behavior, but to be honest it's designed for c++ so it's occasionally wonky with c#, mostly in asp stuff, but it's still wonky. Maybe one of the c# dedicated addins supports this too Cal- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Books on XBox 360 and XBox Live Development for eLearning?
Hello, I'm sorry to be such a noob, but if you have children, please consider offering me some assistance. I'm studying what it would take to put a SCORM compliant Learning Management System like Moodle ( http://moodle.org ) on XBox Live with the goal of offering downloadable eLearning that would lead to "Achievements" in things like basic math, geography, and other academic topics, in an entertaining manner. Before I get started, I'd like to read a book on XBox 360 and XBox Live development and find out a few things. Can someone please recommend a good book on XBox 360 and XBox Live development, targeted at an intermediate level C# programmer with Visual Studio Is there a Macromedia/Adobe Flash player for XBox 36 ...Show All
Windows Search Technologies SearchFilterHost.exe has encountered a problem
after installing, as got fed up with outlook beta reminding me to donload and install, keep geting "SearchFilterHost.exe has encountered a problem ect." Has any body else incountered this problem if so how do i get over it ...Show All
.NET Development Trace.Refresh() does not refresh filter of listener
I wrote a simple console application with following code in the Main() function: Trace.TraceError("Error output"); Trace.TraceInformation("Information output"); while (Console.ReadLine() != "n") ; Trace.Refresh(); Trace.TraceError("Error output"); Trace.TraceInformation("Information output"); The app.config file has following lines: < xml version="1.0" encoding="utf-8" > <configuration> <system.diagnostics> <trace autoflush="true"> <listeners> <add name="FileTracer" type="System.Diagnostics.TextWriterTraceListener" initializeData="logfile.log"> &l ...Show All
SQL Server Performance Tuning Advice Needed For This table. Assitance Greatly Appreciated.
I really need some performance advice here. Machine Windows Server 2003 processors (4) RAM (4 Gig) Hard Drives (4) --c: \system --d: \data volume --H: \data volume --I: \data volume The number of records in this database is about 250,000 I cannot prevent a Table Scan from the Application that uses this database. I cannot re-write or change the application as it is outside of my control. However the Application pulls the data from this table in a "Paged" fashion only hitting the database for 30 records at a time. I am really looking for any advice here also regarding. Indexing this: Table Partitions (4 drives) (4 processors) and if partitioned should the files sit ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Update frames for 2D animations
Hi all, In my previous program (C# + MDX), I use the Timer in System.Windows to update the frames by using suitable time interval. Now I would like to change to use XNA. But I don't know whether the Timer class will be supported in XBox360. Therefore, I would like to ask whether there are better ways to show 2D animations. I have read the 2D animation in "HELP". But I would like to know whether there are any other approach. All the animations update the frames in the 'Update" function and therefore all the 2D animations update the frames in the same time. If the fps varies, the timing for refreshing the frames also varies. That's not what I want. Thank you very much The Update method gives ...Show All
Visual Studio Express Editions Setting up arrays
hey Guys me again, One more question, in visual basic 2005 express edition how do you establish and set up an array when you want to link many text boxes to the one button... again i have the old book that tells me how to do this but i need the new code as the old is not working.... Thanx heaps for the help guys Newb Sorry bout that! I need the line of code that goes in the buttons event handler that will save the info entered in the text boxs to an array so that it is easy to retrieve when need be.... I will have another look over the help files but yeah. I'm not sure how to explain it more specifically ummmm...... As you can tell i'm completely to new to visual basic. So yeah anyway i need to be able to save ...Show All
SQL Server Damaged databases
Hi I recently had a hard disk failure on which was running Win2003 SQL2000 SP4. This server is a sharepoint backend server, I repaired the disk to the point that it could be mirrored across to a new and then set about looking at the databases. There was a schedule in place to backup all 4 DBs daily, the backup process at no time after verifying the backup had any errors. All but one of the DBs reports this error when I attempt to run DBCC or similar query I/O error (bad page ID) detected during read at offset etc. (error 823) I have restored back to the earliest DBs I have and I still get the same error. Any ideas on how I can recover as much as possible if not all of the DBs What is the best way to restore from a transaction log I have ...Show All
