Dmitry Shevchenko's Q&A profile
Visual Studio How to load image dynamically
HI all, I am using ASP.net with c# to load crystal report. I would like to know how i can load an image in the Report Header section of the report dynamically from aspx page. thanks pradeep_TP Hello All, I am having the same sort of problems while displaying image using CR.NET and VS.NET 2003. Let me epxlain what I want to do. I have designed reports using CR.NET that I intend to sell to various clients. I want to display client logos on the reports. I don't want to design a separate report for each client. I want to change the logo of my reports dynamically at runtime. I have tried inerting OLE obj ...Show All
Architecture workflow engine and rule engine performance
Please give me your criticakl comments on performance degradation issues arising out of usage ofworkflow and rule engine vis a vis increase in scalability and agility I think that at the end of the day it doesn't matter what performance degradation (if any) you have - it only matters does the architectural appraoch of workflows and/or rule engine fits your solution. for example, for business rules do you have complex business rules does your business rules change frequently, do you have a lot of business rules . Once you decide this is the right direction - you need to evaluate the performance and scala ...Show All
.NET Development Type.GetMethod is incredibly slower in .Net 2.0
My application uses scripts that are user provided and generated at run-time. These text scripts and appended into a class, compiled with a code provider and then invoked by reflection. This works great with .Net 1.1 but with .Net 2.0 the Type.GetMethod used to aquire a MethodInfo for invoking a script is performing significantly worse. What takes 0.3 seconds in 1.1 takes 20 seconds in 2.0. This is quite unwanted. Why is this and is there a better approach to avoid this delay Thanks in advance, Duncan See below for an example that you can execute in 1.1. and 2.0 to see the difference yourself. It first creates the code provider, generates ...Show All
Visual Studio 2008 (Pre-release) InvalidOperationException: open DataReader ...
Hi, I create an object, bind it to some controls, a user clicks 'Save' and the object gets added to the DLinq DataContext. A call to SubmitChanges() throws the exception. Is this a known issue Or am I just doing something wrong Thanks, Rana -- System.InvalidOperationException was caught Message="There is already an open DataReader associated with this Command which must be closed first." Source="System.Data" StackTrace: at System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) at System.Data.SqlClient.SqlInternalConnection.BeginSqlTransaction(IsolationLevel iso, String transact ...Show All
SQL Server Expressions not evaluating values???
Hi, I use an expression in a column text box to dynamically compute the column title. The problem must have something linked to the way expressions generally works. I do not understand it clearly. In this example, I use a SWITCH function to test the numerical value of a 1 row 1 column dataset. The problem is that I can test the number only if it is lower or equal to the number in the dataset. if I test a number greater than the number in the dataset, I get an error. How can I get this test to work if the value tested is greater than the value in the dataset Thanks Philippe Bellow is the code. ------------ ...Show All
Software Development for Windows Vista Rule Condition Editor doesn't resolve correctly
Hello, I have the Feb CTP. I am building a basic sample where I have a custom activity (Activity1) dropped into the Sequential Workflow. Then I drop an IfElse activity after my custom activity and I create a new RuleConditionReference condition. When the Rule Condition Editor appear and I type "this." I don't see my activity listed. Do I miss something Thanks, Pierre pierreg wrote: Hello Steve, no, I have the problem reported here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=294151&SiteID=1 Thanks, Pierre Pierre, In XOML-only mode, the compiler does not insert those friendly chil ...Show All
SQL Server [Expired subscription clean up] job failing
Hi, The "Expired subscription clean up" job at the distributor keeps failing with the following error. Any ideas what it could be Message Executed as user: domain\servicesql. The Distributor has not been installed correctly. [SQLSTATE 42000] (Error 20036). The step failed. Thanks, Priyanga This is a bug in replication for the case where distributor is not configured as publisher, this bug has been fixed and will be available in SQL Server 2005 SP1. ...Show All
SQL Server Executin SQL statement from variable in functions
Hello All Within my function depends on value forming a SQL statement As Example set @SqlString = 'select ' + @ColumnName + ' from ' + @tableName + ' where ' + @whereCond How can i execute this Statement. within function Thanks in advance RK Sorry, typo http://www.sommarskog.se/dynamic_sql.html > looks like the site was down ...Show All
Visual FoxPro cannot update cursor < > since it is read-only
I am getting this error message at RUNTIME ONLY in startMode = 4. In interactive mode (starMode = 0) everything works fine. This message comes from a secondary form that I use to select email addresses. They are stored in a table with a few fields. I dedicated one of them as a markup field meaning that if that address is selected in a combobox it is marked, the table is updated as TABLEUPDATE (1). I mean, it is supposed to be updated. It is not . Instead I get a series of error messages related to each address selected (main address, CC, BCC, etc). I do not understand the message because there is no cursor. It is a table. Again, it appear ...Show All
Software Development for Windows Vista Some question about Exception throw by activity
hi all, there are some question about Exception throw by activity, I defined SubSystem A,B and workflow C In workflow I used activity D define by SubSystem B, where A fire a event,the workflow c execute activity D ,if activity D throw an exception the workflow was terminated,and SubSystem A don't konw this exception. firt, I hope SubSytem A can receive this exception. second,I want workflow can continue . anyone can give me a Solution thanks! Michallieu, Can you try the following - In the WF, the section you think can throw an exception have it within a Composite Activity(For Eg. Sequence). F ...Show All
Windows Forms Manually wrap a string
How do I manually wrap a string I want to popup a help text as a ToolTip on a TextBox, but I do not know how long this string is in advance and as the ToolTip does not have a maximum width with autowrap it might look pretty ugly to have an 800 pixel wide ToolTip with one line. So it seems that I have to break the string myself. How do I do this, if I want to break it after a full word every, e.g. 250 pixel One way I guess is to create a Graphic object from an empty Bitmap, append word by word to the string and measure it each time until it fits, but that sounds pretty unefficient to me. Is there a build in function I did overlook ...Show All
SQL Server Issue with launching Report Builder from client PC's
Hi, I got a working installation of reporting services 2005 up and running, Im able to create models and launch the Report Builder on the machine on which the server is installed, however if I try and run it from another machine on the network I get an error and Im able to view the following exception. Following errors were detected during this operation. * [04 Jul 2005 10:39:34 +01:00] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - Failed while downloading http://testserver/ReportServer/ReportBuilder/ReportBuilder.application - Source: System.Deployment - Stack tr ...Show All
Windows Forms Accessing a control from outside the form class (in form.h)
Hi, Hopefully someone knows a little programming trick here. :-) A USB device connected to my computer periodically executes a function in a provided DLL file which in turn executes a function in my program. Within my function, I'd like to write some text to textBox1 in the form. Since the function is outside the form class in the form.h file, I have to pass the textbox in as an argument. HOWEVER..... I cannot do this because I cannot edit the parameters of my function (they are dictated by the DLL file). So how can I access this textbox from a function outside the form's class without passing it into the function as an argument ------------ ...Show All
Visual Studio Team System Team foundation server notification not working
Hi all, I'm having problems getting notifications on visual studio 2005 team sytem (with beta 3 refresh foundation server).I've registered to get notifications (such as when someone checks in code) and when it happens I'm not recieving any mail.I've looked at SQL server 2005 reporting services configuration manager, and my company smtp server and the sender adress (my adress) are provided. I've also made sure that the the values of the "smtpServer" and "emailNotificationFromAddress" (mine as well - should it match to the account sending the mails -TFSSERVICE) are present in the web.config file found in C:\ ...Show All
Visual Basic Newbie Database Question
This is a very basic question, but I've wasted a few hours trying to figure it out already, so I'm groveling for help. I'm looking for basic code to help me open a database, read some of the contents into variables, and that's it for now (close the database). The database in question is a flat table in mdb format; 8 columns, 15 rows - each row is a record with a name (p01, p02, etc) and seven associated strings - pretty primitive. The 1st column is the record name. I've gotten as far as associating the file with my project, but can't find the trick on how to open it and read what's in it. The code should: 1) Open the file ("CCUG PreOp.mdb") ...Show All
