TRID's Q&A profile
Windows Forms How to code "Find" feature in .NET Browser control?
Hi Guys! Any way to code the "Find" feature using the .NET Browser control Matt this does the trick: ---------------------- using mshtml; ... public findText(string text) { IHTMLDocument2 doc = webBrowser1.Document.DomDocument as IHTMLDocument2 ; IHTMLBodyElement body = doc.body as IHTMLBodyElement ; IHTMLTxtRange range = body.createTextRange(); range.findText(text , 99999, 0); range.select(); } ------------------------ ...Show All
SQL Server SSIS DTC Transaction's HOT questions
I am using SSIS with Transaction, and I met a lot of questions as below: 1.IF DTC doesn't support ADO.NET Connection Please check the ADO.net Connection's property, it has a property named like: DTCTrancactionSupport. But it's always set to False and unable to edit. IF the answer is NO, HOW could I bound all my Tasks into one Transaction You know, I have some Tasks with SQL connection, and I have also some Script Tasks, witch need the ADO.net connection. 2.IF DTC required to run in both the Destination Server and the Source Server I have a Dataflow Task, and take some data from a table in a Source Server to a Destination Server. The DTC doesn't run on the Source Server. I found the Dataflow Task hangs when I use the SSIS ...Show All
Visual Studio crystal report problem
I have developed a windows Application using VS2003 (C#.NET). All of its reports were built under crystal report version 8.5. my clients give me a licenced copy of crystal report 11. After configuring client pc using .net framework 1.1 and crystal report 11(licenced copy ) i am unable to run the reports. while i run the forms containing crystal reports i found the following message: File or assembly name CrystalDecisions.Shared, or one of its dependencies, was not found. its detail part contains: ************** Exception Text ************** System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Shared, or one of its dependencies, was not found. File name: "CrystalDecisions.Shared" at VATSysDes ...Show All
Internet Explorer Development get_Document returns NULL in IE7
Has anyone seen this behavior In IE7, when get_Document is called on IWEBBrowser2, it returns NULL. Basically, I am doing the following in the OnCreate of the explorer bar (my explorer bar is based on an HTML control): CAxWindow wnd(m_hWnd); HRESULT hr = wnd.CreateControl(IDH_HTML_SPLASH1); CComPtr<IDispatch> pHtmlDispatch; CComPtr<IHTMLDocument2> pHtmlDocument; hr = wnd.QueryControl(IID_IWebBrowser2, (void**)&m_spBrowser); if (m_spBrowser) m_spBrowser->get_Document(&pHtmlDispatch); After the above last line, pHtmlDispatch is NULL. This seems to happen only in IE7. What could be the reason And if pHtmlDispatch is NULL how else can I get hold of the document Thanks When I tried get_To ...Show All
Smart Device Development how can i develop .net cf1.0 program on vs2005?
i'm using vs2005 for develop wm5's program,i find it must be install .net cf2.0 framework which the mobile's system is wm2003se,this is not my hold,can i use vs2005 to develop .net cf1's program Yes you can. NETCF V1 projects are marked (1.0), just pick one of these and that’s it. .Net Framework 1.1 and SDK 1.1 are required for NETCF V1 projects, make sure you have these installed. Also keep in mind you probably would have to install NETCF V1 SP3 on to devices or test against all 4 versions of NETCF V1. ...Show All
Visual Basic Either Sending Keys directly to a specific form, or bringing specific form to the front
Basically, I have a program that loads a page, pastes some text, clicks a button, waits 20 seconds, loads another page and repeats, most using SendKeys. Upon loading: SendKeys("+{TAB}+{TAB}(text){TAB}{ENTER}") The first two backwards tabs get into the text box, the text is put in the box, and tab puts it on the button. Now, I'd like for this program to be able to run while I do other things - and I bet you just saw my problem. SendKeys sends its keys to the active window, no matter what that window is. So since this is running on a timer, I'd need to bring up the window myself every 20 seconds for SendKeys to work right. (Right now I have it running off of the timer, waiting for my prompts instead) There's two ways I' ...Show All
Architecture VisioR 2003 UML To XMI Export
Has anyone been able to import the xmi export file this tool generates into any other tool I have tried pulling Visio Use case diagrams into XDE, Sparx 4.1, and now Sparx 6.0 with zero luck. Are there any plans to upgrade this add-in to export xmi 1.1, 1.2, etc The 1.0 version it exports is not support with the rest of the tools (XDE and Sparx) on the market I am currently using. If I understand your question correctly... It would have value any time you need to process the metadata associated with that model. For example, looking for interoperability with other tools, or code generation downstream. Perhaps, this is not relevant in the use cases that are more important to you. Or maybe ...Show All
Visual Basic Cloning Listviews
I'm wondering how to accomplish a complete clone of Listview entries, with all subitems and icon settings. Is this possible without explicitly going through all variables E.G. Listview2.entry(x) = Listview1.entry(y) The best you will do is to iterate through the list and clone the items: For Each lvi As ListViewItem In Me . ListView1 . Items Me . ListView2 . Items . Add ( lvi . Clone ) Next In order to get the images to show up properly you must set the listview2 imagelist to the same imagelist as listview1 ...Show All
.NET Development useUnsafeHeaderParsing=true does not solve protocol violation error
Hi, I've been trying to use C# and .Net 2.0 to talk to a web-service that exists *outside* of our corporate network. This wasn't working due to a protocol violation so I tried a simple reproducible test case using [Http]WebRequest to access *any* page (e.g. http://www.bbc.co.uk ). In all cases I get a WebException thrown with the following message: The server committed a protocol violation. Section=ResponseStatusLine I've spent several hours searching the internet and come up with loads of results that point towards it being due to stricter HTTP header parsing as of .NET 1.1 SP1 (presumably that follows through to .NET 2.0 ) and that the proxy for my network may be returning bad data. It's worth noting that I have *NO* pro ...Show All
SQL Server Unable to browse the cube 'Sales' Un specified error
Hi Team, I am using Analysis Services 2000 to build my dimensional model. When i browse the cube 'Sales', it gives me an error that unable to browse the cube 'Sales' Un specified error. Could someone help me out. Your considerations will be highly appreciated. Regards, Ejalu Ronaldlee Hard to guess what is going on. Try installing latest service pack. If doesnt help, you might need to re-install Analysis Services. Edward Melomed. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
SQL Server Seconds (10000) to HH:MM:SS format
Hi, How do I convert a number to hh:mm:ss format The number can be assumed as in seconds. I got a code here in the forums =String.Format("{0:HH:mm:ss}",CDate("0:0:0").AddSeconds(<Number>)) My problem is that when the number is BIG, it does not return the correct result. Example: =String.Format("{0:HH:mm:ss}",CDate("0:0:0").AddSeconds(10000000)) returns 17:46:40. If the number is small, the conversion is correct. What can I do about that I just started out in Reporting Services 2000. Thanks! Rj rj_pebs@yahoo.com The problem your facing is that your 10000000 is more than 24 hour. If this is happen your code is also counting ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed - Unable to connect to Sharepoint
I have been getting this error over and over, regardless of what I try: Error Unable to connect to the Windows SharePoint Services at 10.61.70.50 Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at 10.61.70.50. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. User Action Contact the administrator for the Windows SharePoint Services at 10.61.70.50 to confirm that the server is available on the network. Also, you might find additional helpful information in the project creation log. The log shows each action taken by the ...Show All
Visual Studio Team System What is this parameter for?
On the Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer class the method QueryHistory 's second parameter is VersionSpec version . I am unclear on what this parameter is for. The documentation does not say. When I read the code in Reflector it seems that it is not used for anything. I doubt that I have read the code correctly. Would someone please clue me into what it is for Thanks, Jay Please look at the Richard's post to the similar question http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1078502&SiteID=1 ...Show All
SharePoint Products and Technologies Initiation Form doesn't appear when usin automatic launch WF
Hello, I've associated a custom WF developed with VS2005 and IP forms to a task list but when I select "Start this workflow when a new item is created" the initiation form is not shown, so I get " null " for Initiation data on workflowproperties in onWorkflowActivated first event. But this doesn't happen when I launch manually the workflow. Then (if manually started) the initation form is shown and everything goes fine. Anyone have any suggestions Hi Eduardo, You can't use an initiation form on an auto-start workflow. If you need to capture custom initiation data on a per item basis I think you'll need to set up some fields on the list or document library and parse the content ...Show All
SQL Server Agent failures and custom alerting
Hi I need to have a reliable alerting system for my merge replications I have setup on my MSSQL 2005 server. The problem is that the build-in alert system the 'agent failure' alert only triggers when 'all databases' for that specific alert is selected. There is no failure alert triggered when I select a database and force a failure. The 'agent succes' alert does never get triggered at all. I need an reliable succes and failure alert per database because I need to do specific actions per database. Can someone help me out here I'm thinking of building my own alerting system if the help here is insufficient. In that case I need to know in what tables to look. Maybe someone can give me some pointers Thanks anyway, Edward ...Show All
