David Graton's Q&A profile
Visual Studio BATCH FILE and VB.NET
I am creating a project with VB.NET and i need to write a batch file and excute it or call it from there, how can i do this Another thing about writting the batch file, I dont have any experince in writting batch files, but from my readings i understand that it should be written with dos commands and saved in a .bat format.. I want the batch file to open a text file and read it charecter by charecter, and output the charecters+1 to a new document.. For example if the text file has 'a b c' the batch file should write the following output to a new text file 'b c d'. Any HELP will be appreciated.. Thanks. Thanks alot for ur replay.. I 've checked the links u gave me about the batch files, ...Show All
Software Development for Windows Vista Copy file problem with Windows vista using VS setup deployment
Dear All I've got problem with File.Copy method with Windows vista RC1 using VS2005 setup project. The exception is UnauthorizedAccessException error. But I've no problem with in Windows XP to copy file to destionation folder. Do you have any idea with it and any permission change with Windows vista See below my code.. using System; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.IO; using Microsoft.Win32; using System.Security; using System.Security.Permissions; namespace CustomInstall { [RunInstaller(true)] public class CustomInstall : Installer { // Override the 'Install' method. public override void Install(IDictionary savedState) { base.Install(saved ...Show All
Microsoft ISV Community Center Forums Automating TOC
Hi, I am generating the Table Of Contents(TOC) of a document by pointing the Range to the BookMark which i had placed manually on the start of page2. But if my TOC fills only half the page, then actual contents start from the very same page below the TOC. Is there any way to check if the TOC and actual contents are present in the same page and if so can we manually include a Page Break Could it be Something like this If so is there a syntax to get the page number of the selection If( PageNumberOf(TOC) == PageNumberOf(Actual Document Contents)) { Insert Manual Page Break; } Or is there any other way to handle this -Amrish ...Show All
Visual Studio Express Editions Change your local IP address with proxy server
When using the web browser control(the one that's exactly like internet explorer) is there anyway to use different cookies for two seperate web browsers. I created two different browser windows, logged into one account on the first, and a different account on the second, but then when I refresh the first window, it shows as logged into the second account. Is there any way to use seperate cookies(as I'm assuming the problem is that the cookies in the cookie folder are being replaced by the second account's cookies) for each of the windows opivfx, How is your project going I hope that the explanation on the Session from the server and the cookie from the customer can give you a satisfied auswer. Although ...Show All
Visual Studio Tools for Office Outlook plug-in problem with Outlook remainders and Blackberry synchronisation
I am facing some unique problems after installing my outlook plug-in VISTO2005 SE - My outlook reminders keep popping up even after dismissing it - Synchronisation of Outlook calendar with black berry stopped working Any idea on the above two issues Please take a look at this post for information on other MSDN forums & newsgroups that might be better suited for this question. Specifically, this newsgroup( http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=US ) or this site ( http://www.outlookcode.com/forums.aspx ). Mike ...Show All
Software Development for Windows Vista Missing include file stgprop.h
Ntquery.h try to include missing file stgprop.h in the June 2006 CTP. As a workaround i've added storage property set definitions in it manually from the previous version of ntquery.h. HTH, Sergey. Hi, I also get this message when I want to compile the WTLExplorer-Sample from WTL 7.5 by using the Final of the WindowsSDK. How can I fix this I set the directories that the WinSDK is at first place. ...Show All
Visual Studio Express Editions treeview for main application menu / navigation
im seriously considering using this control for the main menu and navigation for my small application. The top level will contain static options (i.e customers, system maintenance, reports etc) and i'll dynamically populate each option with data at runtime. i would like to know if you have used this control for this purpose, and what are the avantages or pitfalls you have found especially any appearance / look and feel issues. i would like and icon next to my top level options, and to change the font for child nodes etc.. thanks thats strange. i think even the web control has a property for doing this. funny that the web control has more functionality than a 'rich client'. ...Show All
Visual Studio DSL for existing descriptive language
Hi everyone. At first I have to admit that I'm a newbie in the wide world of DSL. So, maybe my question is a bit obvious for some of you. For the project I work in my company (that is a component-based framework, based on .NET 2.0), I'm working on a solution generator for customer projects. We already created a description language in XML for the abstraction of the application. Based on this file, a complete VS solution is generated. To create this XML file, I want now to create a designer and was directed to the DSL tools. But after some hours of working through the walkthroughs and trying to find a solution, I'm stuck. What I want to achieve is a DSL model, that results in the same XML schema that we already have ...Show All
.NET Development How to translate a configuration file to code instructions
Hello I have the following configuration file for a client which need to use a remote object <configuration> <system.runtime.remoting> <application> <channels> <channel ref="http" secure="false" port="0" /> </channels> <client> <wellknown type="CallbackLib.ICallbackInterface, ICallbackInterface" url="http://localhost:2222/CMyService" /> </client> </application> </system.runtime.remoting> </configuration> The object CMyService support the registration of an event (implemented as an event) called by the server and intercepted by the client. When I use the configuration file everything works f ...Show All
SQL Server number in words
Hy, I use Reporting Services with Visual Studio and in my report I have to write the numbers of my data base in words. For example : "55" has to be written "fifty five". I have to do that in two other langages: french and dutch. But I don't know at all how to do that. I never used reporting service before. Can you help me Regards Hello Oolon, I had the same requirement, but I had in english. I did not create a table insted I created two functions and called one from another. First function has all the table values and the second has all the logic. http://www.planet-source-code.com/vb/scripts/ShowCodeAsText.asp txtCodeId=439&lngWId=5 Hope this helps. ...Show All
.NET Development Window size problem
Hi all, I am developping a Web Application and I can not change the Window size to extend the Web Form and add other Objects What is the problem I can not find the Window Height Property of the Web From. Thanks, JR ...Show All
Visual C# Shared components versioning strategy.....
Is it wise or/and acceptable to use "*" (asterisk) in version number. If the assembly is shared and GAC'ed, each time a developer re-compiles to fix an "issue" it changes the version and all applications that depend on the shared component will break... Is there a good reason to use "*" (asterisk) in version number Are there any references or Best Practice documents about this subject I wouldn't recommend using it. Here's one blog entry with some guidance on versioning: http://blogs.msdn.com/suzcook/archive/2003/05/29/57148.aspx ...Show All
Visual Studio Express Editions unable to update data in a database
Hello! I am using VC#2005 Express and trying to work all off the video tutorials. When I started to work on Lesson09, I encountered a problem: I follow instructions from video lesson, but when I try to update data in a database, I receive an error: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I use default settings for tableaddapter and dataset, in a same way as in video, and here is the code private void button1_Click( object sender, EventArgs e) { bindingSource1.EndEdit(); int result = 0; result = customerTableAdapter1.Update(myCompanyDataSet1.Customer); MessageBox .Show(result.ToString()); } Thanks to whoeve ...Show All
SQL Server programmaticaly save deployed report in ASP.NET 2.0
Hi Does somebody knows how to save a remote report on the webserver when the report is generated in a report viewer, all programmaticaly behind the scenes So I can view the report later. Thx Thx I have found a solution for the problem by using the Render method as you suggested. On my localhost it works fine. Only thing to check is if it works on the internet as well. Warning [] warnings; string [] streamids; string mimeType; string encoding; string extension; string deviceInfo; deviceInfo = "<DeviceInfo><SimplePageHeaders>True</SimplePageHeaders></DeviceInfo>" ; byte [] bytes = rptAfdruk.ServerReport.Render( "PDF" , null , ...Show All
Smart Device Development wince 5.0
Hi, I have a program writen in C# Visual studio.net 2005. Can I run this program on a Handheld that run winCE.net 4.2 OR the handheld need to be with winCE 5.0 or Mobile 5.0 Jeanet if your program is in C# .NET 2.0 then yes it will work with wince5.0 (Windows Mobile 2005) and Windows CE 4.2 (if you install .NET CF 2.0 with SP1) if your program is in C# .NET 1.0 it will be able to work in WinCE4.2 if you install .NET CF 1.0 SP3 I believe http://www.microsoft.com/downloads/details.aspx familyid=7bf313b9-71ed-4e15-ad6e-315dae6faf9f&displaylang=en ...Show All
