Steve Jensen's Q&A profile
Visual Studio Express Editions how some help fix my code?
'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage(" From@abc.com ", " To@abc.com ") Email.Subject = "test subject" Email.Body = "this is a test" Dim mailClient As New System.Net.Mail.SmtpClient() 'This object stores the authentication values Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential("username", "password") 'Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "Mail.RemoteMailServer.com" mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo ...Show All
Visual Studio Tools for Office Convert word doc to pdf
Hi, I need to convert word document to pdf file using C#.2 Iam having MS visual studio 2005 professional (and also MS VS.2003 enterprise ed) MS Office 2007 I have downloaded SaveAsPDFandXPS (used to convert doc to pdf) Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) My question is Do i need "MS visual studio 2005 for office tools" version to work with ms word, so that i can convert word to pdf. The PDF file converter is not installed as part of Office, due to licensing issues raised by Adobe. It must be downloaded and installed separately. Are you sure the file converter is correctly installed on the machine where this error is being raise ...Show All
Windows Live Developer Forums Problems with custom tiles
I am adding a custom tile using a static map image file on my pc and loading with AddTileSource & AddLayer. The file loads but not only is it not scaled or positioned correctly, but it also gets tiled across the whole background VE image The image is correctly georeferenced in the bounds clause and is based in the northern hemisphere - in the UK. I've tried bmp, png and gif formats - but same result. Is there a minimum bit map image size or lat/long precision issue that might cause this Jeremy, I'm still experiencing problems with Mapcruncher, running under XP and dot net v2 and am unable to produce any rendered tiles. Three immediate problems: The Maximum (closest) zoom box which should be d ...Show All
Visual Studio report viewer
report viewer will not print the first time user clicks the print icon, however the second time it prints. This is consistent on five different computers with locally attached printers. This is a known issue that has been fixed with Visual Studio 2005 SP1. Take a look at this thread for more information: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1032267&SiteID=1 ...Show All
Software Development for Windows Vista how to restart workflow runtime after IIS restart
My question is for workflow exposed as web service through webserviceinputactivty/webserviceoutputactivity. My impression is that workflow runtime is only started after the first web service call. My test workflow has 3 activities: webserviceinput, webserviceoutput, delay. SqlPersistence service is enabled. The workflow is activitied through a web call. When executing the delay activity, it's persisted to the database. Then I shut down the web server (ASP .NET development server). When the web server restarted, the timer already expired but the workflow was not resumed. Only after I made another call to the web service, the timer fired. I did an experiment in a winform application. When the application starts next time, the timer fir ...Show All
SQL Server how to find port no in sql server 2005?
hi all i am wirking on sql server 2005. is there ab=ny way by which we can come to know , on which port the sql server database engine service is running eventhough i know that it runs on port no 1434 , but still i want to know the way by which we can finf out this. plz help me. Easiest way would be tun run netstat and see which port is listened to or run the configuration utilities. HTH, Jens Suessmeyer. --- http://www.sqslerver2005.de --- ...Show All
Visual Basic click and drag, howto?
How to click and drag a component, such as textbox for windows application and smartdevice app For the smart device question you should probably post this on the Smart Device Forum. I don't have much experience with smart devices so I can't give you any help with that part. http://forums.microsoft.com/MSDN/default.aspx forumgroupid=11&siteid=1 ...Show All
Visual Basic Environment Variable question
Hi everyone, I am having some trouble finding the environment variable used to display a computers RAM info and Processor info. Any help is appreciated. Thanks in advance, My . Computer . Info . AvailablePhysicalMemory My . Computer . Info . AvailableVirtualMemory My . Computer . Info . TotalPhysicalMemory My . Computer . Info . TotalVirtualMemory My . Computer . Info . OSPlatform System . Environment . ProcessorCount System . Environment . GetEnvironmentVariable ( "PROCESSOR_ARCHITECTURE" ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Performance profiler and obfuscator
I have two software questions. First of all does anyone know a good performance profiler package (besides CLR) Secondly, what is the best way to secure your intellectual property, by using an obfuscator or are there alternatives. What are the thoughts of Microsoft on this part. Cheers! On the flip side, what are some good ways to make sure someone DOES break into your car You leave the windows down, doors unlocked, and post a sign on the hood that says "I don't have a car alarm, take whatever you want". Of course, none of us do that, which is precisely the reason why we don't worry about our cars being broken into. If you're worried about people taking your work (which sounds like the case here), you owe i ...Show All
SQL Server Need help using GROUP BY clause
I have two tables A. TEST_SUBJECTS_TBL with the following columns . This table contains the subjects in a test 1. TEST_SUBJECT_ID PK 2. SUBJECT_ID FK 3. TEST_ID FK 4. PM This is the passing marks for the subject B. TEST_MARKS_TBL with the following columns This table stores the marks scored by students for each subject 1. TEST_SUBJECT_ID FK 2. STUDENT_ID FK 3. MARKS_OBTAINED I need a query which gives me the max, min,avg marks obtained in each subject for a test and the total number of students who have passed in the subject The query output should be something like this ___________________________________________________________________ SubjectID MaxMarks MinMarks AvgMarks TotalStudentsPassed _________ ...Show All
Windows Forms upload single/multiple xls files to gridview
I have a preformated xls spread sheet(s), that the user needs to upload to a GridView to review and make changes to the data then I save it to a SQL table. my problem is how can I have a user select a single or in most cases multiple xls files to do the upload ...Show All
Visual C++ Command line error D8037 : cannot create temporary il file
I got this error when I use System.Diagnostics's process to call cl.exe (VS2005 C++ compiler) to compile C++ code throught web-application. "Command line error D8037 : cannot create temporary il file; clean temp directory of old il files." Development Platform: Windows XP Pro SP2 (IIS5.1) ASP.NET 2.0(C#) Web-application .net Framework v2.0.50727 Does anyone hv any ideas about this error After several month, I finally got the solution. Just want to share here so that anyone else having this problem can solve it without the painful experience I got. In Fact, the solution is quite X.. Process compiler = new Process(); compiler.StartInfo.FileName = @"C:\WINDOWS\system32\cmd.exe"; c ...Show All
Visual Studio Express Editions Modyfying the state of system registry
I am comfortable with understanding the architecture of registry but do not know how to obtain and change the values in the system registry with WMI i.e Win32_Registry. How to modify the system registry using WMI in VB.NET. Also want to know how to create Keys and subkeys in the system registry. dim reg as microsoft.win32.registry = microsoft.win32.registry.hkey_ etc. etc Use the Microsoft.Win32.Registry and RegistryKey class ;) It's quite simple :> ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to use DirectX 10 to get graphices memory ?
Dear All , I had read the Microsoft white paper for "Graphices Memory Reporting through WDDM" It talk how to retrieveal of graphics memory values . I had use VC++ 2005 wit DirectX 10 SDK to build program , but I wan't to use function "CreateDXGIFactory( )" to get the struct data "DXGI_ADAPTER_DESC" , but compiler alway error , error message "DX10Dlg.obj : error LNK2001: unresolved external symbol _CreateDXGIFactory@8" , can any one help thank you ! Dear All, Thank you for your help, I fix my problem ! The process as below : 1. add dxgi.h in *.cpp , add gxgi.lib 2. use CreateDXGIFactory() to get DirectX Interface entry point 3. to Enu ...Show All
Visual Studio 2008 (Pre-release) obtain type of DependencyProperty
When I register a DepencyPorperty I can specify what type it is supposed to store. How can I find out what type is set for a DepenencyProperty of a class Is it possible to find this out without actually having instance of a class For example how do I find out programmatically that UIElement.FocusableProperty is a boolean without actually having an instance of an UIElement ...Show All
