Fekih Mehdi's Q&A profile
Visual Studio Tools for Office How to create, deploy and setup a Word Template using C#
Hello, I created a Word 2003 Template using VS/VSTO 2005 and C#; what I created was one button on a Document Actions pane, when a user click on the button it would return a list of hotkeys from the template. Then I created a setup project and ran the setup to setup the template. But, the Document Actions pane was not shown when I opened the template. Is there a list of steps on how to create, deploy, setup and use a Word template with Document Actions pane A sample or an article would be great! Thanks in advance. Hi David Must have had a blackout, yesterday, or had Add-ins on the brain... You can also use the ThisDocument_Startup procedure to make your ActionsPane object visible. this.ActionsPane.Visible = tru ...Show All
Visual Basic listing tables from access database:guides and tips please...
Hi, I have scoured the forums for how to do this but seems that there are more for SQL servers than Oledb. Can anybody guide me on to list tables from an access file preferably using oledb. I just need to make this work, then I can submit my prototype . Incidently, I noticed that there are variety of ways doing it, wether by using getSchema, getOledbSchema etc., but I noticed that these methods bind to datagrid. I started doing my app using the vb2005 express edition so I am much more familiar with the datagridview thing. Is there anyway of making it work with datagridview, since it requires a command string to work Thanks for all assistance tendered. PS. how does one refer to a forum thread in his/her thesis write up ...Show All
Software Development for Windows Vista Storing WF-Data into ORACLE DB
hi, can anybody tell me how it works to store data from a workflow into an ORACLE DB-tables Is it as easy as storing in MS SQL Server thanks, bg As Daniel mentioned you will need to create a custom persistence service. The post here should help you get started. ...Show All
Visual Studio 2008 (Pre-release) Vista IIS7 WCF - Has anyone got it working?
I can't get the simplest WFC app created by the VS2005 to work on the local machine! Two - I have read and tried just about everything mentioned in any post about WFC and IIS. This is NOT supposed to be this difficult I am sure. My installation: Vista Beta 2 (build 5384), IIS 7 enabled, VS2005 with extensions (WF RC2, Orcas), Vista Windows SDK 5383.1.1 I ran the serviceModelReg.exe -i (no errors). I have copied other web services from IIS 6 to the IIS 7 and they work nominally. I can create, compile and execute aspx sites on the machine. A step by step setup procedure would be helpfull. I hope someone at Microsoft actually has a configuration working... If not please say so. Been beating my head against the now bloody rock for ...Show All
Windows Forms Creating new forms using threads, and keeping then open after thread exit
Hi there! I currently have a program that creates and displays a new form based upon a message sent by another application. The hierarchy of the threads are as follows: Main Application -> CommThread -> FormCreationThread The problem is that while the CommThread is a continuous thread, the FormCreationThread is temporary; once it creates the new forms, it ends. Because of that, once the FormCreationThread ends, it takes my new form with it. If I set the FormCreationThread to sleep or suspend after it creates the form, it also blocks the form from being used. What I'd like to do is have a way to create a new form from the FormCreationThread, and have it still alive after the thread itself ends. Any ideas on what I can do H ...Show All
Software Development for Windows Vista WER and missing information message
Hi, I have a problem running the Certified for Windows Vista testcase 32. I get the WER dialog and an error event in the application log but the information event log entry is missing. Oppening the eventviewer with administrator rights does not solve the problem. I am using x86 Vista RTM. What are the conditions for a crash to result in an information event from WER Rune Hello Rune Gee Madsen, Is it possible you can do a screenshot of your log As far as I know the information logs notify a successful event which if WER runs should be posted. Have you tried sending the error report and canceling the send as well Thanks! Matthew Braun ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Requirements Checker
Well, I finally decided to write a little utility that checks for the required components of XNA (excluding .Net2.0 because i wrote it using .net 2.0 ) because I've seen just too many threads about the game not working on non-dev pcs. This program lets the user know if they have an outdated graphics card, installs the latest directx using directx webinstall, and installs the xna framework redist 1.0. I bundled it together inside a NSIS installer package because it was the easiest method i knew of. Not the most elegant way, i know. If anyone has a better solution, please let me know. I included the license for both directx and xna, and if i missed any legal issues with redistributing the packages in my own way, please let me know. I ...Show All
Smart Device Development Can't connect PC to Pocket PC using code
Hi, I am new to Compact Framework programming. I was trying OpenNETCF.Desktop.Communication.dll files and it doesnt work somehow. I tried asking at their forum but didn't get any response so trying here. I tried the sample code for connecting the desktop to Pocket PC. First time I tried RapiCSharp sample code, it worked perfectly, now it never connects. The moment I put the Emulator on Cradle, ActiveSync takes over and makes the connection by itself. When I click on Asyn or Synchronous connection button for RAPI, it simply doesn't connect. Reason being, I guess, one connection has already been made. I can't stop the real ActiveSync from taking over. How do I get it working again Any help would be appreciated. Regards, TipCSharpy ...Show All
SQL Server Is it wise to use the Model for "canned" Report Manager-hosted reports?
Hello, I'm having a discussion with one of my colleagues about what to use as the data source for reports that are being designed by the IT staff for hosting in the Report Manager. One of us believes that the Report Model (that we will build for our end users who want to use the ad-hoc Report Builder feature) should be what we report against. The other feels that stored procedures should be written that go directly against the underlying database tables and the Model should be used only in the Report Builder. From a "best practices" standpoint, should we be creating our canned reports from the same Model that is used in the ad-hoc Report Builder environment What are the performance implications of using the Model vs. stor ...Show All
Visual Studio Are Parameters the only way to pass values to a report?
I've using a tableadapter to populate the dataset that my report is based on. As follows: Me .RenewalsTableAdapter.FillByExecCode( Me .RenewalsDataSet.Renewals, stExecCode, lMonth, lYear) Happy with it, all works. However, I'd like the year and month to appear on the report. I have created hidden Year and Month parameters, and it displays fine. But is this necessary These parameters will never be used, as the Renewals datatable already has the correct data. Does creating parameters add any overhead to the report processing time Thanks Vayse Using parameters is the normal way to do what you want. It doesn't add any significant overhead. In local mode, because you are supplying the data, pa ...Show All
Visual C++ Year color in a Date-Time Control
Hello, How to change the background color of the year in a Date-Time control. Because I want to use this kind of control to select a birthdate. Thank you, Christophe, Hello Re: Year color in a Date-Time Control Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating A Game Library (Best Practices?)
I've created a 'Windows Game Library' project to act as a re-usable API on which to build my games. It will contain most the basics... Sprite drawing objects, Line drawing, Bitmap Fonts, Input, etc... The thing I'm running into is how best to give my library layer access to all the important details from the game layer. Properties in the GraphicsComponent and Graphics Device are two good examples. Should I design all my objects to take a "Game" object as a parameter and call back using that Is there a better way What are other people doing Thanks. If you are building a "Scene Graph", then usually the objects don't hold any reference to the GraphicsDevice or related components. They are just passed to them in ...Show All
Visual Studio Tools for Office Office 2007 Custom Ribbon
I have created a new project and im trying to follow Ted Pattison's "Office Developer Screencast" for creating your own ribbon. I just added Microsoft.Office.Core to the project but it won't let me add IRibbonExtensibility from the drop down selections,I have installed the latest SDK (Sept 06) and Power Toys, also the Visual Studio 2005 tools for Office Second Edition Beta, is there anything else i need namespace TestMacros { using System; using Extensibility; using System.Runtime.InteropServices; using Microsoft.Office.Core; [ GuidAttribute ( "BBF36B84-9826-49C1-883F-41F650064095" ), ProgId ( "DPPMacros.Connect" )] public class Connect : Object , Extensibility. IDTExtensibility2 , IR************** ...Show All
.NET Development timeout expired failed to start instance
I have a C# windows app created with vs2005 on windows xp pro with sql 2005 server express installed ( it uses a database ) I create a deployment project then install the app on the machine Every so often - quite rarely but enough to worry about - usually just after a restart - when I start the application I get a timeout expired - something about failing to connect to an instance - I am assuming it is because the database engine has to start up and then it has to creat an instance and all this just exceeds so time limit - I tried putting "Connection Timeout=300" in the connection string in the app.config file - it did change the sqlcmd.connection.connectiontimeout to 300 but it did not get rid of this intermitant probl ...Show All
SQL Server transform Active X script to what?
HI I'm totally new to integration services, I was savy with DTS but now having been told to get on with it in SQL 2005 I'm a bit stuck. I've got an ActiveX task which basically does the following:- Function Main() DTSDestination("Title") = DTSSource("Title") DTSDestination("Surname") = DTSSource("LastName") DTSDestination("FirstName") = DTSSource("FirstName") DTSDestination("OtherNames") = DTSSource("PersonCode") IF (IsNull( DTSSource("LastName") ) ) and (IsNull( DTSSource("FirstName") ) ) THEN IF Not (IsNull( DTSSource("PersonCode") ) ) then DTSDestination("Surname") = DTSSource("PersonCode") El ...Show All
