max.cn's Q&A profile
Visual Studio CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed no Windows Server 2003
Eu estou executando o seguinte codigo abaixo em asp.net com o Visual Studio 2003, e utilizando como servidor de dados SQL Server 2000, em um servisor Windows 2000 funciona mas em um servidor Windows 2003, ele apresenta mensagem de erro. Eu estou utilizando o Crystal Reports 9.1.3300.0 que vem com o Visual Studio. Qualquer ajuda sera muito bem vinda. Codigo : CrystalReportViewer1.ReportSource = Server.MapPath("CrystalReport2.rpt") CrystalReportViewer1.LogOnInfo.Item(0).ConnectionInfo.ServerName = "BRASIL" CrystalReportViewer1.LogOnInfo.Item(0).ConnectionInfo.UserID = "sa" CrystalReportViewer1.LogOnInfo.Item(0).ConnectionInfo.Password = "" CrystalReportViewer1 ...Show All
.NET Development Can any one explain me more about Regular expressions in C#
Hi all, Could any one explain me about Regular expressions in C#. I went through the Orielly book of C# programming, but I was totally confused. Can you qoute some examples and explain where the RegExp are used..... Thanks, suresh. I recommend downloading a utility to let you play with various regular expressions and search strings. There's a good one called Regex Builder 2.01 which you can download here . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. main menu
Will you be able to create a main menu and if you can how will it be done We won't be providing a set of GUI classes in the first release. This is something that we will provide in a future release. I expect we'll see some community created gui systems at some point, probably sooner than later. :) One of my demos for the component model was creating a simple "main menu" component. I could probably release that as a tutorial on my blog. ...Show All
.NET Development How can I get my asp.net application faster with .net CLR
Hi gurus, how can I optimize any asp.net application's speed with the help of using CLR. What rules should follow to do that any articles or checklist is required Cheers Agha, Unfortunately there isnt a silver bullet that will help managed applications run faster. Performance Optimization is done on several levels, not just the CLR. Infact in my experience, 99% of the cases run fine with the default CLR settings. Is there a specific performance problem you are facing Here is a basic guide to some elementary ASP.NET perf tuning. http://samples.gotdotnet.com/quickstart/aspplus/doc/perftuning.aspx For GC/Memory tuning look up Maonis blog at http://blogs.msdn.com/maoni/ There is an interesti ...Show All
Visual C# Exception???
System.ObjectDisposedException: Cannot access a disposed object named "DataGridTextBox". Object name: "DataGridTextBox"......I am getting this exception and unfortunaltly i dont know why or how to catch the exception so i know what line of code is throwing this....any help on how i can get this error handeled Right this exception happens when i just close the form....so how would i catch that....would i wrap the entire form in a try catch block I dont think i can do that....when i close the form with the x button in the top right corner i get the exception and i dont have any Form Closing events..... ...Show All
Visual Studio 2008 (Pre-release) Setting Width and Height of User Control
Hi , How can I set the Height and Width of a User Control so that it increases or decreases depending on the height and width of the parent control. I have created a Custom control with a Canvas and placed this control in a Tab Item. I am unable the set the Width when I resize the Tab Item (this is again in a Grid Splitter). I tried using the ActualWidth Property .. how ever that value seems to be NaN. Thanks for the help. Thanks Lee, but that does not seem to be working. As you said I placed the control in Grid: < TabItem Header = " My Control " > < Grid > < local:MyUserControl Width = " 500 " Height = " 500 " /> </ ...Show All
Visual Studio Team System Load test of a web site that requires each user to be logged only once
I'm trying to load test a web site that requires each user to be logged only once (an user cannot log on more than once at the same time), using WebTest coded as C#. Is it possible to run such a load test for <n> users from a single PC If yes, a) can the WebTest get some information from the load test as to which of the <n> users this particular WebTest is running for [I can then give (hard-code) different usercodes/passwords in the WebTest, depending on the user-number] b) when a load test is performed by selecting more than one scenario, is there a way to ensure that each of the selected scenarios only has one instance running at a given point in time [the idea is to single thread a set of test scenarios in a l ...Show All
Software Development for Windows Vista DLL registration fails on Windows vista
Hi, i am in process of upgrading a DLL application from VS 2003(Windows 2003) to VS 2005 on Windows vista platform. There is a post build event for registering the DLL. This fails with error code "0x80070005". When i try to register this DLL through command prompt, it fails with the same error code. With reference to all forum discussions, i disabled UAC on vista and tried registering the DLL through command prompt. This time it fails with the error code "0x800703f2". There is absolutely no way i can find out about this new error code on the net. Can somebody help me resolve this P.S. : i am running VS 2K5 as an administrator and also i have administrative privileges for my login. Thanks in ...Show All
Visual Basic How can I cycle through all the System.Drawing.Colors?
I worked out the Console version to cycle through all 16 available colors: Sub Main() Dim x, y As Integer For x = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x Console.ResetColor() Console.Clear() Console.WriteLine() End Sub I also worked out a program that cycles through 4 colors in a Windows form: Private Sub btnCycle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCycle.Click Static x As Integer x = x + 1 If x = 5 Then x ...Show All
Visual Studio Custom editor coloring
I've managed to get custom colors working and my custom colors to appear in the options dialog list, but the editor windows are not always updated after the colors are changed in the VS options window. I have to exit and restart VS in order for the new colors to be used. The docs for Colorizable item allude to something more that needs to be done to support this. In the Remarks section: "The ideal place to construct an array of custom colors is in the constructor of your implementation of the LanguageService class. If you support customiztion of the colors, then you would initialize this array in LanguageService.CreateDocumentProperties after the DocumentProperties object was created." Why would I initialize this arra ...Show All
Visual Studio How to two leves of compartements
Hello I have one Compartement Shape with two compartements. I need add other level of compartement in one of them. I don’t see in documentation anything about this question. Hello, I’d be greatful if you could send me an example about the fact that you have told me. My email is bialguos@gmail.com Thanks Oscar ...Show All
Visual Studio Express Editions I need to write a macro
I need to write a sub command in an existing file that will divide cells R150:R170 of an excel sheet by 1000 and display the result in the same cells. How do I do that Please help! not sure this should be in this forum, it's a VBA question, but anyway... Sub test() Dim rCell As Range For Each rCell In ActiveSheet.Range("r150:r170") rCell.Value = rCell.Value / 1000 Next End Sub ...Show All
SQL Server Please help compatiblity between VS2003 and SQL server 2005
We have an existing project developed using VS 2003 with SQL server 2000. Now planning to switch to SQL server 2005. Are there any compatibility issues between VS 2003 and SQL server 2005, Plus sql server reporting services 2005. We have been developing this project over a year and don't want to mess it. Now we are at the stage of developing reports and finidng lot of problems with sql server 2000 reporting services. Thank you very much for the information. We moved from VS 2003 and Sql Server 2000 to VS 2005 with Sql Server 2005 and only ran into one issue. We had one stored proc that had a Union query. This query worked differently in Sql Server 2005. Everything else was fine - no proble ...Show All
Visual Basic Third Party Component for Printing?
Hi, Does anyone know where I can purchase a good third party component for printing to the printer for VB. NET I have a bunch of documents that need to be printed and the PrintDocument object is just not cutting it. Thanks ...Show All
Visual Studio 2008 (Pre-release) DrawImage "InterpolationMode" in WPF?
I need to control the interpolation of a BitmapSource when it is rendered to the screen - I have an application requirement that says the images must be interpolated using nearest-neighbor when resized. I have fruitlessly looked for something in WPF corresponding to System.Drawing.Drawing2D.InterpolationMode. The closest I have gotten is RenderOptions.SetBitmapScalingMode(...,...) but it does not do nearest-neighbor interpolation. Any ideas Seems strange that the interpolation-options would not be available in WPF. Thanks, Andreas Hallberg David Teitlebaum MSFT wrote: Offhand, the only way I can think of to get nearest neighbor in WPF would be to figure out what the final size of the ...Show All
