sagepe's Q&A profile
SQL Server how do you resize the parameter section?
In Report manager 2000 I would like to be able to resize the parameter section in IE6 but its fixed how can i enable drag bar on the pane thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compilation error when XACT project has multiple wave banks
Hi, I am encountering the following error whenever I compile the XNA game project that has a XACT project which has more than 1 wave banks. The first compilation after the .xap file is added to the project would be successful however subsequent builds would result in the following error: Building content threw ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildXactCoordinator.CheckDependencies() at Microsoft.Xna.Framework.Content.Pipeli ...Show All
Visual C# Visual Studio stops responding using CDATA within Comments
I'm running Visual Studio for Software Developers on Vista. I've installed Service Pack 1 and the beta for }Vista. Has anyone else experienced a problem when trying to create an xml comment in a .cs file such that Visual Studio stops responding and begins to eat all the memory on the system until it crashes public partial class WebUserControl : System.Web.UI.UserControl { /// <summary>asdf</summary> /// <example> /// <code><![CDATA[]]> /// </code> /// </example> protected void Page_Load(object sender, EventArgs e) { } } As soon as I try to add some HTML in between the [] in the CDATA, Visual Studio falls on it's sword. Am I alone here ...Show All
SQL Server Replication of triggers
Hello ! I have set up some transactional replication on one of my database but I can't see where I can specify that we should replicate the triggers. What I have seen is that the triggers are automatically replicated when the table is replicated except id they are marked "Not for replication" But it does not seem to work for me. Do you have any idea Thanks, Hello All, we have continued this discussion offline with Raymon Mak. To resolve the thread, here is the conclusion : I think I found out what the problem is, and it has something to do with [the id column] being an identity column marked not for replication. What happened was that when the distribution agent created the trigger, the server thinks ...Show All
Visual Studio Problems building help with HelpStudio Lite
I receive the following error when i try to build my help project: Error: HXC4001: XML syntax error: Element 'HelpTOC' cannot be empty according to the DTD/Schema. The help project has an TOC with lots of entries. It was working fine before and now i get this error no matter what i do. I even created a new help project and i get the same error. I'm using version 2.1.0.8 build # 2.00.0035 from the latest VS 2005 SDK. Any suggestions, besides using a different tool :) Thanks in advance. Hi Gary, I don't think that the problem lies within HelpStudio Lite. I don't use it (it's not installed), but had a similar issue and managed to solve it. What happened in my ...Show All
SQL Server Last row ?
Hello Team How can i get a value from a column in the last row for ex: select orderno from orders .......... but the last row Thanks lot There is one more work around available to get the last record.. if your table has 3 columns, declare @col1 as varchar(100); declare @col2 as varchar(100); declare @col3 as varchar(100); Select @Co1l=Col1, @Col2=Col2, @Col3=Col3 From Tablename; Select @Col1 as Col1, @Col2 as Col2, @Col3 as Col3; So here you need not to use any order by clause. It always fet the last row. ...Show All
Visual Studio Express Editions Installing VS 2005 for web development
Is there any expiry period for the express edition of VS2005 I installed it for the web development a few months ago. Now I couldn't create a new web project cos' there isn't any option. Do I have to uninstall VS 2005 and reinstall Or, reformat my entire PC to install the software I've found the problem. There are more than 1 downloaded versions of the Visual Web Development in my PC. I've removed them and installed the latest version. It's working now. ...Show All
Software Development for Windows Vista Set folder security permissions during installation
This note from the Microsoft site mentioned below, suggests that application specific data should be placed in the location provided by the KnownFolder API (passing parameter :CSIDL_COMMON_APPDATA). CSIDL_COMMON_APPDATA This folder should be used for application data that is not user specific. For example, an application may store a spell check dictionary, a database of clip-art or a log file in the CSIDL_COMMON_APPDATA folder. This information will not roam and is available to anyone using the computer. By default, this location is read-only for normal (non-admin, non-power) Users. If an application requires normal Users to have write access to an application specific subdirectory of CSIDL_COMMON_APPDATA, then the application must explic ...Show All
Visual C# Timer
Hi, I want to make just a simple example.... I have two TextEdit and one button,and one timer.... In timer's properties I have declared the time as 8000 (8sec)... and this I want is when I press the button the timer to start counting and after 8 sec to copy the text from textEdit1 into textEdit2..Just that :).. My example code, which it doesn't work :( , is: namespace WindowsApplication3 { public partial class Form1 : Form { bool flag = false; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { timer1.Start(); timer1.Tick += new EventHandler(timer1_Tick); if (flag == true) { textBox2.Text = textBox1.Text.ToString(); } ...Show All
Visual C# Export as HTML File
Does anyone know what code I would use to export HTML code in a Rich Text Box into an HTML file I know in notepad you can simply go to "Save" and then you can save your file as whatever, but you have to add ".HTML" to the end, or it wont export as an HTML file. How do I tell my program to open the "Save Document" dialog for the Rich Text Box and have .HTML document as an output source, instead of having to enter it in the file name Thanks a lot guys! You have been a BIG help. One way would be to create a multi-line textbox hidden (visible=false) behind the Rich Text Box and then copy all the Rich Text Box content into it and then save it using a System.IO.StreamWriter object. In your Save File Dialog ...Show All
.NET Development How to insert new node after the 3rd child? VB.Net
Hi Can anyone tell me how do I select 3rd child in xml document using xpath. <A> <B> <C> <1></1> <2></2> <3></3> need to insert new node here <4> </4> <D></D> </C> </B> </A> Currently I am using the following Dim Path As XmlNode = doc.SelectSingleNode( "env: A /env: B /tax: C " , nsmgr) .......... ........... ........... Path.InsertAfter(Imark, Path.FirstChild) The above code inserting the new element after the node <1> but I want it after the <3> node and before <4> node in <C> element. Advance Thanks Dennis is right. I would just add that if the 1-4 do ...Show All
Visual Studio Tools for Office RTF Woes in Outlook 2003 via VSTO 2005
I'm working on an Outlook 2003 VSTO application to generate an email in a specified format. I need the resulting rtf email to be reviewable before it is sent. Using redemption is NOT an option for 2 reasons: 1) it’s unlikely the Air Force will authorize a 3rd party add-on, and 2) My preliminary tests with redemption indicate that while the sent email message is indeed formatted when sent programatically, you can’t review and send it manually. - I get a blank page. We’re talking about some very simple formatting here – Bolding and underlining – but I can’t find a reliable way to make it happen. Do you have any ideas I got the help I needed with this problem from Sue Moshier at http://www.outlook-code.c ...Show All
Software Development for Windows Vista GraphEdit records fine, corresponding code does not
I have got DirectShow running nicely for viewing a standard webcam video stream. The graph is registered so GraphEdit sees it-- here is a summary: capture filter(Logitech web cam) -> Smart Tee -> Capture branch-> MUX -> File writer -> Preview branch-> Video Renderer However, when I capture the stream and save it to an .avi file, the file is unreadable. The strange part is that if I use GraphEdit to remotely see the DirectShow graph and then run the graph via GraphEdit, then the .avi file is fine. The properties page of the good (GraphEdit written) file shows a framerate while the one run directly from code does not (all other parameters such as size, resolution, compression format (uncompress ...Show All
Visual Studio Problem with sandcastle config file
hii there.. i just installed the new version of sandcastle (november) and right now it won't work anymore even when i try it from the command line.. there is an error message when im using the buildassembler program, it said that it can't find the syntaxgenerators.dll and looking at the sandcastle directory there no such file. Can someone give me an example of the config file for the new version.. thanks hi, the syntaxgenerator.dll was renamed to SyntaxComponents.dll. Kind regards, Stephan Smetsers ...Show All
.NET Development Composite DataTable or DataSet with multiple DataTables?
Hi there: I am trying to create a DataTable that includes data from more than one data sources (ie more than one table in a SQL Server database). These data sources are related, there is a foreign key relationship between them. The problem is the foreign key columns in the data sources have the same name. For example I have the ID column as a primary key in Table1 and then I have OwnerID as a foreign key in Table2 and OwnerID in Table3. The foreign key relationship is between Table1.ID and Table2.OwnerID, respectively Table1.ID and Table3.OwnerID. I have a problem adding these columns to my DataTable (since they have the same name). I added the columns with different names, but I can't create ColumnMappings for both of them. If ...Show All
