jyotish's Q&A profile
Visual Studio Express Editions C# and application settings
Hi all , I'm just starting to learn C# after learning a lot of Visual Basic. However, I have become a bit stuck! It's a really simple question but I really can't work it out. I added two settings to a project, X and Y, both integers. I set the scope to Application. How do I then access these settings I need to be able to read from and write to these variables, which is the problem I have at the moment. A site told me to use RocksnGems.Properties. Settings .Default.X //and RocksnGems.Properties. Settings .Default.Y to access the settings (RocksnGems is the default namespace for the project). I don't know if reading the variables in th ...Show All
Visual Studio Tools for Office Document.Application.Selection becomes null
Hi All, I'm using Document.Application.Selection.Find.Execute to search for specific text and upon a hit i'm inserting an image there. This works fine if the document is not invisible. Now, I'm opening a document WordApplication.Documents.Open and pass a parameter which is the visibility parameter as false. After doing this when I try to find the text as in above para, the Selection property of Document.Application becomes null. I suppose, this is valid behaviour. If so, anyone suggest me an alternate to this TIA Pavan Hi Pavan, The best place to ask any Word Object Model or general Word spec ...Show All
.NET Development ASMX interop between .NET 1.1 and .NET 2.0
If I have a web service written using v1.1 are there known issues when trying to consume it (via wsdl.exe-generated proxies) in a .NET 2.0 (Beta 2) client Ofcourse this happens when you declare a web service function to return a .NET object, like a dataset. For dataset in particular, I've noticed that the xml output is pretty clear and shouldn't impose any problem not only when changing .net version, but even when used by other platform. ...Show All
.NET Development Serial port
I've been looking some information about send and recieve files tru the serial port, and i can't find something usefull to me. I'm using Visual Studio 2003 and C#, so the System.IO.Ports doesn't work. Does anyone know some examples or code that could help me or al least what is the best way to do this. Thanks. System.IO.Ports will only work in .NET 2.0 (ala Visual Studio 2005). This class is not present in .NET 1.1 (ala Visual Studio 1.1) ...Show All
Windows Forms Text box text format checking
I have some text box which allow the user to key in integer and decimal. How do i do a checking on the text enter in the text box that it is integer ot decimal E.g. Throw a error msg to the user when the user enter letters in the text box where the user is suppose to enter integer or decimal. As soon as ...Show All
Visual Basic run-time error '1004' general mail failure
'*********************************************************************** ' Sub: ForwardToApproval 'Descript: Used to Send the Packing List File to a Level-1 Authority ' (Includes Code for Adding Buttons, Protection, and Routing ' Info to the Appropriate Packing List File) ' By: Jesse Davis - June 1998 '*********************************************************************** Sub ForwardToApproval() 'Declare Object Variables Dim UserEmailAddressCell As Object 'Declare String Variables Dim SendToUser As String Dim UserEmailAddress As String Dim ReleaseNo As String 'Declare Boolean Variables Dim DialogOk As Boolean 'Declare Integ ...Show All
SQL Server Getting the name of the updated table
I am writing a generic trigger in VS 2005 that selects records from the inserted table, and updates an audit table. I am, however, unable to retrieve the name of the table that the insert occurred on. I am using the following code to select the records, and obtain the name.. Can anyone offer any alternatives to accomplishing this task Thanks in advnace for any help you can provide. Craig SqlDataAdapter tableLoader = new SqlDataAdapter ( "SELECT * FROM inserted" , connection); DataTable insertedTable = new DataTable (); tableLoader.Fill(insertedTable); string insertedTableName = insertedTable.TableName; ...Show All
Visual Studio Rajeev please help, bug in .Net
Rajeev please help, I think I have found a bug in .Net. If you look at my other recent post you will see the code I am using to bind a report to a datatable in ASP.Net via an ObjectDataSource , which works for the master report. Using exactly the same code to create the ObjectDataSource , but adding the following line of code to the subreporteventhandler should bind the subreports. e.DataSources.Add( New ReportDataSource("dstMonthlyReturn_title", ObjectDataSource2.ID)) However it doesnt work, a subreport with no data requirements shows up, but the same subreport when a datasource is added fails. The same reports and very similar code work ...Show All
Visual Studio Team System Unit testing web appl and change browser type
I want to set the broser type of the resquestPage. I know the browser type is extract from the user agent in the header. Is it possible to tell that the browser I want to run the test is Mozilla [ TestMethod ()] [ HostType ( "ASP.NET" )] [ UrlToTest ( "http://localhost/Default.aspx" )] [ AspNetDevelopmentServerHost ( @"%PathToWebRoot%\Mvc\Tests\MvcTestsContext" )] public void InitializeTest2() { Page page = testContextInstance.RequestedPage; // Some code... } Hello Unit test does not send HTTP request so you will not be able to set this with a Unit test. The diffe ...Show All
SQL Server Matrix order of totals
I have a matrix that shows sums by month. The dataset returns both month and quarter. I want to have subtotals by Quarter. I have this working and the matrix returns columns as follows: Jan Feb March Q1 April May June Q2 ... Total What I would like to have is Jan Feb March April May ... Q1 Q2 Q3 Q4 Total Is there anyway to have subtotals displayed at the end of the row For dynamic groups (e.g. quarter), the subtotals are always part of that group. They currently cannot be moved out of that group instance. Another way of doing this, is to use a table in the report with explicit column ...Show All
Visual Studio Team System Build server running, but errors running unit tests
I've finally gotten TFS running on a test project and building with a dedicated build server. The build, static analysis, and deployment all work great, but I'm having a problem with the unit tests. I'm not using any web or load tests, but I'm getting failures locating the LoadTestPackage and the ASPNetHelper assemblies. Any ideas or suggestions for debugging Thanks The build log contains the following: Using "TestToolsTask" task from assembly "d:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.QualityTools.MSBuildTasks.dll". Task "TestToolsTask" Loading D:\Builds\UnitLibrary\Full Build\ ...Show All
Visual Studio Tooltip not showing up in ReportViewer
I have a report that displays an image in a table column that allows the user to drilldown into a detail report. The image has a tooltip associated with it. When I view the report in Report Manager it displays the tooltip. When I display the report in a ReportViewer control (in remote mode pointing at the same report) the tooltip does not display. Is this expected behaviour Report Manager is using the ReportViewer control, so there should be no difference. Can you post a simple repro rdl ...Show All
Visual Studio Help with an error message
Hi I keep getting this message when trying to launch a piece of software I recently purchased- Visual basic 6.0 tool kit has encountered an error and has to close. Can anyone offer any ideas Does it mean reinstalling the software, and if so, where are the links and which is the correct one. That error seems to be related to VS 6.0, and apparently has nothing to do with GAT. Which version of VS are you starting when you get that error What software are you trying to use ...Show All
SQL Server Multiple Log Files
Using an expression to set the log filename to include the date and time results in 3 log files being created. Ummm. Why I only ran the package once. Is SSIS not sharing my log file connection among the different components On first thought my workaround would involve using a script task to "set" the log file name to a variable and use an expression to set the log connection to the variable. But the problem with that is that logging starts BEFORE the script task is run... Hi, It would be great if you can give more details about your package. Are you creating the log file in the 'OnPostExe ...Show All
Visual Basic How to pass parameter in url using System.Diagnostics.Process.Start message
I need to pass a parameter as part of my url, not necessarily visible to a user, when i automatically launch an url using System.Diagnostics.Process.Start command. How do I do this THanks just put a hidden web browser control on a form and invoke- WebBrowser1.Navigate( "http://www.microsoft.com" , "_blank" ) ...Show All
