LightFootedEagle's Q&A profile
Windows Forms Save File Dialog. (I have code, just need a little help fixing)
Hey, Ok, so I did the save FIle dialog code and it works fine. But I can't figure out how to amke it so thta is will save the contents of the current page in the webbrowser. Here is the code: private void savePageToolStripMenuItem_Click( object sender, EventArgs e) { Stream myStream = null ; SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.InitialDirectory = "c:\\" ; saveFileDialog1.Filter = "Webpage Html (*.html)|*.html|Text File (*.txt)|*.txt" ; saveFileDialog1.FilterIndex = 2; saveFileDialog1.RestoreDirectory = true ; if (saveFileDialog1.ShowDialog() == DialogResult .OK) { try { if ((myStream = saveFileDialog1.OpenFile()) != nu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Play Wave Properties
I'm trying to change the Play Wave property 'LoopEvent' to 'Yes' but I get the error "Object reference not set to an instance of an object." I'm not sure what I'm doing wrong. I have a cue and track setup, with a Play Wave event, and it contains a sound. What am I missing All I want to do is setup a sound which just continuously loops. Thanks. Hi guys, Hm, I've never seen this - can you tell me the exact steps you're performing That is, how are you setting the value Clicking into the field, drag-selecting the text, trying to type over it, etc. And how are you accepting the change that causes this dialog to appear (Clicking away, hitting return, etc.) Also, have you tried this with the newest (A ...Show All
Visual Studio Tools for Office Problems referencing an Excel project class from a Word project
I'm tryng to call a method in an Excel project class, from a Word project, but when I call the call the class constructor, I recieve an Internal Error. // Starup method in the Word Project private void ThisDocument_Startup( object sender, System. EventArgs e) { // Reference to the Excel Project ExcelWorkbook1.Sheet1 sheet = new ExcelWorkbook1.Sheet1(); sheet.ExportarGraf1( "C:\\" ); } It says that Sheet1's constructor recieves another paramether, but I don't know what it means. Thanks a lot For this answer, I am assuming from your code that: You have a customized Workbook (ExcelWorkbook1) that contains a Sheet1 class on which you created the ...Show All
Visual Studio Tools for Office MessageID, email headers
Dear All, I have VSTO project for Outlook writen in C#. I get every new email and I need to get MessageID from email headers. I don't find how can I do this. I need help. Thanks Tomas Hi, to access to the messageID property I'm doing like this : private const string PR_MAIL_HEADER_TAG = "http://schemas.microsoft.com/mapi/proptag/0x007D001E" ; Outlook. PropertyAccessor oPropAccessor = this .oMailItem.PropertyAccessor; strHeader = ( string )oPropAccessor.GetProperty(PR_MAIL_HEADER_TAG); After that, I parse the strHeader with a regex, is there an easy way A more direct way to access to each proprety (messageID, inReplyToID,... ) of the header using the propertyAcce ...Show All
Visual Studio Team System Report Lines of Code Team Project
Hi, is there a way to make a report of all the coding lines within a team project thanks! regards Simon Hi Simon, The total lines is calculated for all lines in the file, not just lines with text on them. Unfortunately there isnt a way to go around this. Could you tell me a bit more about your requirement for reporting on lines of code, so that we can see if we can incorporate that into our planning Mauli ...Show All
Architecture Calling Biztalk Rules Engine Remotely
I want to know if we can call the BRE from custom code (.NET API) remotely Lets say, The BRE is installed on Biztalk server. And I have an Asp.NET Web Application on a different IIS Server. Can I invoke the BRE from this ASP.NET web application As far as I know, not, it is not possible directly, and even if you could, I'm guessing this would be outside of the uses allowed by the EULA. That said, I guess you could certainly expose a service from the BizTalk server that wraps your policies and allows you to call them remotely in that way (this could even be a biztalk orchestration that calls the BRE exposed as a web service, for example). ...Show All
Visual Studio How to get class from CodeClass or CodeElement?
I want to get the class object from CodeClass. CodeClass.FullName gives me the class name in string type but I want to get the object of that type. Do I need to use reflection I appreciate your help. Notice that an add-in can work with: - Code declared in source files, maybe not compiled yet or out of synch. For this you use the extensibility model (EnvDTE) which provides classes such as CodeClass to retrieve information from the source code without forcing you to parse it. Since the code maybe is not even compiled, there is no point asking about the object of a type. - Code compiled in assemblies. For this you use Reflection, which can be used outside add-ins too. ...Show All
SQL Server SQL Reporting Services
Query # 1 When I export my SQL report to a desired format (like pdf) through a web application, it opens a new browser window. Even after i save the report (in pdf format), the browser window remaisn open. It is cumbersome for the user to close the window as it is not used for displaying anything. Am I doing something wrong which is obvious to anybody Query # 2 While saving the SQL Report in the desired format, is it possible to default the target filename to a configurable value in the file box which appears Thanks navingp Query # 1 is quite normal i wont think we can do anything. if you are directly opening in pdf format using reporting services webservices than it will de ...Show All
Visual Basic printform installation
I have a problem installing the component - it installs on my PC, and the sample app works, but I can't get it to appear in the toolbox. When I do "choose item" it is not in the list of available components (yes I have looked in both tabs!) I guess I am doing something silly, but I can't see what Thanks - that worked, but i am puzzled by why it didn't work as it should have, and concerned that I might be missing other things - any suggestions ...Show All
SQL Server SQL Server Managment Studio
I'm now using SQL 2005 instead of 2000 and when I'm writting Stored Procedure if I don't put the database name as in the FROM clause in a Select statement and one of the specified column is not existing (or has a typo) in the table, I don't receive an error when I parse the code. Is there a way to be prompt for the error prior to call the SP You are in the wrong forum. Try the Transact-SQL forum. ...Show All
Visual C# Send and Retrieve files to Database
hi again... This time i'm stuck on an issue concerning sending and retrieving *.exe files to and from a SQL database. Code to send: FileStream fs = new FileStream (FileName, FileMode .Open, FileAccess .ReadWrite); byte [] MyFile = new byte [fs.Length]; fs.Read(MyFile, 0, System. Convert .ToInt32(fs.Length)); fs.Close(); dAdapter = new SqlDataAdapter ( "Select * from system where id=1" , cnn); SqlCommandBuilder command = new SqlCommandBuilder (dAdapter); DataSet ds = new DataSet ( "system" ); dAdapter.MissingSchemaAction = MissingSchemaAction .AddWithKey; dAdapter.Fill(ds, "system" ); DataRow row; row = ds.Tables[ "system&quo ...Show All
SQL Server Very Slow Data Access on SQL Server 2005?
Hi Here is the brief to my problem We had our database on SQL Server 2000 and Windows 2000.This machine had 2gb of RAM and dual Penitum 3 processors and about 25-30 users were connected all the time. The size of database is around 2 gb. Even on this setup rate of data retrival was good, never had any issues. We moved to SQL Server 2005 and Windows 2003. This machines has 2 Pentium Xeon 3.4 processors and 2 stick of KINGSTON 1024 MB 333 MHZ DDR DIMM ECC CL2.5 DUAL RANK X4 INTEL. The rate of data retrival is awful and its very slow. It using about 1.7 to 1.9 gb of RAM all the time. Page File usage is about 2.07 gb and Virtual Usage is about 1.7gb. I dont quiet understand why is it so slow to get data. We use bespoke software, so ...Show All
.NET Development [OTP]formating
formating the whole pc so i've been told .problems bein new to pc's so bought old 1 to learn on avin big probs dont really know what i'm doin been told may need to format run adaware se & avg antivirus came up clean of virus but riddled with adaware that can't get rid of due to maybe runnin in other programs would apprecciate anyones help or should i bin this old clapped out mch its a p2 by the way dave j c Hi Dave, I am sorry to here you are having problems with your pc. However, these forums are for posting technical questions regarding .NET programming. Please seek the advice of a local technician. ...Show All
Visual Studio Trouble deploying and testing modified WCF Guidance Package
Hi all, I have been busy modifying the existing asmx and wcf guidance packages to alter the code some existing recipes generate, and add a few more recipes. Testing and debugging the asmx package works with no issues, the modified asmx package has no new recipes, only new actions. However, the wcf package will not pick up on the new changes. After I have de-registered, and registered the guidance package it doesn't seem to pick up on any of the changes. When trying to debug the package, it will complain that it is unable to find the symbols for my new actions and references. I have tried uninstalling the WCF guidance package and reinstalling it with a modified setup file, however, when I do this it complains it cannot find WC ...Show All
SQL Server Upgrade SQL express database to SQL server Standard database
Can I upgrade SQL express database to SQL server Standard database Please give information to me! Thank you! Yes, you can upgrade from Express to Standard. Just pop in the Standard media and start the installer. On the instance selection screen, select the name of the Express instance, and continue. This will upgrade the instance and allow you to add the new components you selected. If you do not select the Express instance, it will install the SQL Standard edition side-by-side. Thanks, Sam Lester (MSFT) ...Show All
