learning1314's Q&A profile
SQL Server How can I read value from one XML and assign to another XML.
I need to read value from one master XML and assign to another XML. I am planning to move some of my application's business logic to SQL Server side. I have informations stored in xml field. There is a procedure which accepts the xml input, and return the xml with values from the master xml. Please help me to achieve this. -- master XML declare @x_master xml set @x_master = '<ROOT><NAME>111</NAME><ADDRESS>2222</ADDRESS><TYPE>3333</TYPE><COUNTRY/></ROOT>' -- input XML (this can be any tag from the master XML) declare @x xml set @x = '<ROOT><NAME></NAME><ADDRESS/></ROOT>' --set @x='<ROOT><NAME/>& ...Show All
Visual Studio Export to PDF programaticaly
I have a heavy report with graphs When rendering to PDF it runs out of memory any way to make it render directly to a file Hi Bryan, Yes, you are right it actully generates TIFF file. I guess for most of the sitiuations TIFF will just work fine. However, if someone need jpeg excuslively then we can always convert the TIFF to Jpeg using .NET System.Drawing.Imaging namespace. Regards, Asif ...Show All
Visual Studio Team System Label history
How does one obtain history and properties of an existing label Especially from GUI. Thanks, Maggie Hello, label is a list of files and its versions (it does not need to be one point in time) so properties and history can be a little confusing. What information exactly do you need As somebody mentioned File->Source Control->Label->Find Label let you list content of the label. I believe History Sidekick ( http://www.attrice.info/cm/tfs/index.htm ) has some functionality that you are interested in. ...Show All
Visual C++ Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host The code for the function and the VB declaration are as follows: extern "C" __declspec(dllexport) int __stdcall changefile(char *filename) { FILE *fp; fp = fopen("geo", "w"); fprintf(fp, filename); fclose(fp); return 4; } Private Declare Function changefile Lib "C:\Program Files\Microsoft Visual Studio\MyProjects\d\Debug\d.dll" (ByRef filename$) As Integer Any thoughts ...Show All
SQL Server Unable to Access SQL Server 2005 Remotedly
Not sure if this is the right forum to post this... After going through lot of old posts in various forums and changing lot of settings, i'm still not able to access my Server remotely. This is Windows 2003 Server machine with Sonicwall Firewall, i have allowed Port 1433 in both Firewall and ISA and call is getting through but i'm getting following error msg :- {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"} This machine is also having Sql Server 2000, and ...Show All
Visual Studio Tools for Office VSTO Outlook 2007 Form Region Question
i want to create a new form region. On MSDN it says "If you specify a value of ReplaceAll for the <formRegionType> tag, the form region will replace the entire form, resulting in a new form for a derived message class." this is what i want. I do not want to tamper with the actual Contacts form itself. Rather I want to create a new form which derives from the Contacts form. However I cannot find any more documentation on how to do this. Is it possible to get the code from the voice mail demo which is shown here http://msdn2.microsoft.com/en-us/library/ms788695.aspx . This demo seems to do what I want to achieve. Any pointers much appreciated. I got stuck on this too - the key on th ...Show All
Smart Device Development Custom Windows CE 4.2 based SDK in VS2005
Hi all, I am trying to use an application for Windows CE 4.2 platform, originally developed in eVBC4 using a custom SDK: %ProgramFiles%\Windows CE Tools\wce420\Topaz I have installed that custom SDK provided by the supplier of the device but my problem is that I can’t select this platform (Topaz), which is the proper target for my device , under a Visual C++ project in Visual Studio 2005. Please, any help with this issue or indications TIA! Visual Studio 2005 does not support Windows CE.NET 4.2 based platforms. It supports Windows CE 5.0 and better. You'll have to use eVC++ 4.0 SP4 instead. see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1822&SiteID=1 Michael ...Show All
Software Development for Windows Vista Using transactions to access database within Worfklow
Here is my scenario (in an abstract form): Say I want to get a value in a database table, and then based on that value perform some other action. I do not want that value within the database to be able to be changed until after I have performed the follow up action. I have no problem implementing this process within a SqlTransaction in my data access layer, and getting the desired atomicity. However when putting this inside a workflow, I cannot get the atomicity. Within a transaction scope activity I have a call to a web service, which in turn invokes a stored procedure to get the value in the database. Once the web service returns the value and focus returns to the workflow, and before I check out th ...Show All
Software Development for Windows Vista SequentialWorkflowRootDesigner in inherited workflow
Dear all, I've created a base sequential workflow and added a new designer like this: [Designer(typeof(NewDesigner), typeof(IDesigner))] [Designer(typeof(NewDesigner), typeof(IRootDesigner))] public class BaseWorkflow: SequentialWorkflowActivity { public BaseWorkflow() { } } public class NewDesigner : SequentialWorkflowRootDesigner { protected override SequentialWorkflowHeaderFooter Header { get { base.Header.Text = "Custom header"; return base.Header; } } protected override bool ShowSmartTag { get { return false; } } } In this base workflow i'll add some properties and if i'm not using any activities (white box model) i think it's possible to inherit from. That's exactly what i' ...Show All
Visual Studio Team System Re-assigning bugs and team projects
We are currently using TFS for the first time, and considering using it for bug tracking. However, I have a question about the bugs. We are currently developing a new web site using a SOA architecture and have a Team Project for the services and a team project for the web site GUI projects. Our QA team isn’t currently set up to test just the services and as such they will be testing the deployments using the GUI, which will result in all the bugs being submitted under the GUI project and may in fact be a server issue. How can I move the entered bug from one team project to another so that when a build is done the bug is tracked appropriately Wayne In the second suggestion would that allo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ogg support in XNA?
Hi I just wondered if and when there will be support for Ogg Vorbis (or wma, or something) in XNA (Xact ). Anyone know Having to use wave files for music is really not that great. I think ryan was talking about real time decoding mp3 >> streams >> Pcm - Wav >> Xact. And as I was long time looking for even teoretical solution for MP3 on 360. There is only that way. ...Show All
Visual Studio 2008 (Pre-release) How to add a column in a Listview dynamically using WPF
Hi, I have created a Listview with five columns, which is hard coded. I alos want to create a column in a Listview using WPF in runtime. i.e when a "Add Column" button is added a new column must be added with the Listview dynamically in runtime. As am new to WPF application I need coding help in this issue. Thankfully, Cbe Hi, No errors are displayed but the hard coded values are not binded. Hope I have done some mistake in the coding. Can u able to help me in binding the hard coded values in the new column If so am thankful.... Thankfully, Cbe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA framework for non C#
One of the great advantages of the .NET framework is that developers can work on the same project in different programming languages. As I'm reading about XNA, it seems that this will not be possible with the XNA framework. Will the only programming language that has access to the XNA framework be C# The performance hit is from C++ to C# or C++ to VB. VB runs CRL just like C# so the performance is the same. I have a hard time seeing VB as a good beginner language because it syntax is so different than other languages. To move from C# to Java or C++ or many other languages is much easier than moving from VB just my two cents ...Show All
Visual Basic Problems with dataset designer
Hi I am not really sure where to post this, so I will post here and see what happens - sorry if it's in the wrong forum! I am having real problems with the dataset designer in VS2005. I start a VB project, go to Add a Data Source, select a SQL Compact Edition database, and select some tables. I then go into the Designer, make a few simple changes (for example changing the field names in one of the tables, or changing the name of the table adapter) and the VB Compiler crashes - almost every time, certainly enough times to make this totally unuseable. I have VB2005 Prof installed with the SP1 Beta, with SQL Server 2005 SP1, and with the RC1 version of SQL Compact Edtion. I just cannot get ANYTHING done with this. I have reinstall ...Show All
Smart Device Development Problem with Device Emulator
Hi, I encountered a problem with Device Emulator in VS2005. When I open Device Emulator Manager, I found nothing in the treeview except a single "other" node. And when I debug an application, the Device Emulator could not be connected. But It works well days before. Very appreciate you to help me. I have been following this thread and many others for a similar problem. Both my "Connect to Device" and "Device emulator manager" are empty. I have tried the remove corecon folders from both my profile and all users with no success. When I tried to install the mobile 6.0 refresh hoping that it will solve my problems, it goes upto the "Register with VisualStudio" ...Show All
