nairB's Q&A profile
Windows Live Developer Forums RequestResult is documented but not supported anymore
Hello Microsoft adCenter peers, I observed that you documented the RequestResult method on the .chm file released on August 16, but you do not support it anymore in the wsdl files released one day earlier (August 15). Is the wsdl file incomplete or the .chm file has not been trimmed out properly I hope this message will help you fix this inadvertence. Thank you, Orest Become.com Hi Orest, The RequestResult method is not in the new WSDLs (Administration, CampaignManagement, CustomerManagement, and Reporting), but is in the adCenterAPI.wsdl that is being phased out as part of the move to the new WSDLs. We will update the CHM to reflect this change. Thank you for bringing this ...Show All
Software Development for Windows Vista Monolithic driver, no 'Paper size' and 'Quality' selections in PhotoGallery
Dear all, I am delevoping a monolithic driver on Vista RC1 (build 5600) and trying to test the PrintCapabilities and PrinTicket supports in the Photo Gallery application. Everytime when I select my driver, there are no selections under 'Paper size' and 'Quality' boxes. But if I manually choose them, everything will work fine afterwards. I believe the PrintCapabilities set I returned to the app in IPrintTicketProvider::GetPrintCapabilities() is correct, because I tested exactly the same set of PrintCapablilities in the plugin unidriver from RC1 WDK and it works. I noticed that the PrintTicket in the registry (see below) has no PageMediaSize and PageResolution features, which I believe is the reason, but dont know why. H ...Show All
Visual Basic ComClass and backward compatibility
Can anybody tell me the recommended way to expose VB.NET classes to COM if we expect the interfaces to change The Microsoft documentation recommends using the ComClass attribute (or template) for classes that need to be exposed to COM, but ComClass doesn't seem to have any provision for backward compatibility when I later add properties or methods to the class. If I just add public members to the VB.NET class, I get a COM interface with the same IID but with additional members. This violates the COM rule which states that COM interfaces must be immutable. Clearly I need to assign a new InterfaceID to the VB.NET class, while still implementing the old interface, and I am struggling to find any documentation on how to do this in a VB.N ...Show All
Windows Forms DataGridView Summary row ?
Hi I know that somehow DataGridview in Winforms doesn't have the readymade ability to display a "sum" row at the end of a bound datagridview. But I am quite sure that this is a common requirement for mathematical or statistical solutions, so does anyone has any idea on how to do this. thanks. You can try to manually add last, summary, row in which you can display information that you need. For example, you can try to do the following: 1. Read data from database and fill System.Data.DataTable 2. Add one column to the newly created DataTable – that column might be set to true for the last, summary, row 3. Programmatically add one extra row that contains suitable summary data 4. Do ...Show All
SQL Server Replication Performance?
I'm having a tough time finding any good resources on Sql Server Replication Performance. Are there any benchmarks / state of any kind How well does replication scale out In my scenario, I have one central publisher and several large tables, all with hundreds of millions of records. Every day I may insert/update millions of records in the publisher, and then I need to replicate the changes (in a few hours at most) onto a pool of subscribers, while they remain online. Is the replication story robust enough to handle a situation like this Is this merge or transactional replication, and on what version lf sql server And what is the approximate transaction size (meaning how many commands per txn) Assumin ...Show All
SQL Server A transport-level error has occurred when receiving results from the server
Hi all, I am trying to run a stored procedure which retreives 3 lakhs of records and updates the data and moves few of those records to some tables. Since the number of records are more , the time taken for the storede procedure is around 30 minutes when i directly execute it in query analyzer. But I need to execute it from Visula Studio.Net 2005 (c#). Whole of the application contains only one form with a single button.When I click on the button , this stored procure has to be executed. But I am getting an error as shown below. "A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified networ ...Show All
SQL Server Matix: refering to TOT column
I Have a Matrix: IN OUT TOT num avg max % num avg max % num avg max % r1 r2 I want calculate the "%" so: num(tot)/num(in/out) I added the column tot wiht right-click.... etc How I can refer to num of TOT Thanks abc_abc more details http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673479&SiteID=1 ...Show All
SQL Server Adding new columns with check constraints using same batch
I'm using a stored procedure to add fields to an existing table. These fields must have check constraints and I need to use one T-SQL batch. In Sql2000 Ok. In Sql2005, if table exists, I get error "invalid column xxxxx" in Add Constraint statement before new column creation. the code is Declare @Setup bit Set @Setup = 1 if @Setup = 1 Begin --Alter Table MyTable Add MyField Numeric(1, 0) Not Null Default 3 Exec mySp_Add_Column 'MyTable', 'MyField', 'Numeric (1, 0) Not Null', '3' If IsNull(ObjectProperty(Object_Id('xCK_MyTable_MyField'), 'IsConstraint'), 0) = 0 Alter Table MyTable Add Constraint xCK_MyTable_MyField Check (MyField >= 1 And MyField <= 3) End Else Begin -- drop column ...Show All
Visual C# VS 2003, develop Web Services "offline"
With Visual Studio 2003 (any language, but we happen to use C#), it seems you can't develop Web applications in the IDE without connecting up to a web server. In other words, I can't just copy the files to an offline folder (meaning, some folder that isn't part of a web server virtual directory), double click on the .csproj file, and be off and running. No... I must tell it where my web server is. What if I don't have access to one at the moment. Sure, I'll need one to test and debug, but I need one to start writing the code This doesn't just go for web services, but seemingly any web based project. Correct. Web-based projects in VS 2003 require a web server. If you're running W2K or better than you ...Show All
SharePoint Products and Technologies When I edit a document it opens as Read Only
Hi: Does anybody knows why if one user is administrator of a site and edits a Word or Excel document, it opens as Read Only He is opening the document with the 'Edit with Microsoft Office...' but he cannot save the document, and it is necessary to delete and upload it again, and he has to do it every time he wants to modify it. Regards. We had asked our ASP who hosts our SPS3 site to enable Integrated Authentication so we could automate a job having to do with moving data out of the SharePoint database into another one. This seems to have caused the read-only problem. They are now running both Basic and Integrated Authentication and the problem seems to have gone away. ...Show All
Visual Basic Create control at runtime
I want to create ocx component in Form at runtime. I got the ocx from net. that is Hardwareinfo.ocx. I want to know how can i create that control at runtime in form. I want to call hardwareinfo. ProcessorID at runtime. Because i want to get my Processor Serial number. Do you have any successfully method to get it Thank you, Supun to get the processor SerialNumber (possibly known as the Processor ID), this would require either doing P/Invoke or using WMI add a reference and import the System.Management namespace and add this on say, a button click or wherever you wish the code to be executed: dim theClass as new ManagementClass("Win32_Processor") dim theCollection as ManagementObjectCollect ...Show All
Visual Studio Express Editions Establish array of unknown size
I am not too good working with arrays. I am trying to figure out how to dynamically add values to an array that will be of a size determined by how many times the user does something. Test code below. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim inputnumbs() As Single Dim num As Single Dim input As String = "" Do ' unknown number of inputs will be given by user input = InputBox( "Enter value " ) If input <> "" Then Try num = input Catch ex As Exception MsgBox( "Numbers only!" ) Continue Do End Try End If ' At t ...Show All
Internet Explorer Development Disable/Hide IE7 Command Bar
hi, I just download and install IE7. Don't like the tab browsing thing and try to revert back to familar IE6 menu bar etc. Manage to get back classic menu on TOP of address bar (which IE7 never provide such option) after some google search. Tries to remove all icons in command bar. But after restart a new IE7, the defaults icons came and is quite annoying. No matter how many times I remove, they will still come back. Discover the command bar cannot "move" to be inline (at least) with address bar even toolsbar is unlocked. Also unable to find any solution to disable or hide it. Any one knows how to disable/hide the Command Bar Thank you. Thanks for that, worked a treat! Y ...Show All
SQL Server Restore error :msg 5173
Hi, I try to restore a backup copy of production database into development database, this is our routine process, which is scheduled every night, at the end of the restore process, development database is set to SIMPLE and log file is truncated. It works fine, but today the process failed because backup file is corrupted, so the database is in loading state, and I used the following restore command to restore database from another good copy of backup file: restore database devcopy from disk='c:\dev.BAK' with move 'dev_data' to 'G:\DBFiles\devCopy_Data.MDF', move 'dev_Log' to 'F:\DBFILES\devCopy_Log.LDF', replace I got an error messge: Server: Msg 5173, Level 16, State 1, Line 1 Cannot associate files with different databases. ...Show All
Software Development for Windows Vista Persistence and Serialization Error
I have recently upgrade to the June CTP. I am experiencing an odd error when using the delay activity. Using SQL Profiler I can see that the call to "InsertInstanceState" passes a "status" paramter value of 3. What exactly is 3, is there a reference doc somewhere I can download to see all statuses In addition, the info parameter has the text, 'System.Net.Mail.Attachment'' in Assembly ''System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'' is not marked as serializable. I am using the EmailActivities provided on the WF site. I compiled them in VS2005 and added the activity to my IDE. Once my workflow completes the delay is supposed to email me. This never happens. Rather my workflow hits the d ...Show All
