Johan Hiemstra's Q&A profile
Visual Basic Unable to cast COM object of type 'System.__ComObject'
Could someone please help me with this error, or tell me how I can fix it. Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.WebBrowser'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface. Dim objShellWins As New SHDocVw.ShellWindows Dim objExplorer As System.Windows.Forms.WebBrowser Dim objDocument As MSHTML.HTMLDocument Dim blnFound As Boolean Dim blnResult As Boolean For Each objExplorer In objShellWins If TypeOf objExplorer.Document ...Show All
Visual Studio Express Editions visual express C # installation will not install on my computer.
Hi i try to install visual C# installation on my computer it gives me a message saying that setup is loading installation components this may take a minute or two. and i let it go for 20 minutes and it still had not load. can someone help with this matter. thanx!!!! Hi friendz, A few questions so that we can get a better picture of whats going on: a) What OS are you trying to install C# on b) What is the spec of you computer (cpu, memory, hdd) c) How are you trying to install C#, from a download or from a CD image I expect that you are trying to install from a download, and if so are you still connected to the internet As the download only downloads an installer and you will ...Show All
Visual Studio Express Editions Weather Tracker not working
Hello, I just started learning Visual Basic using Build A Program Now book. I am now trying to run Weather Tracker program but having problem running it. I get the message which says the web service is not available. Does it work for you If you know what to do, let me know Hi. Was wondering if you ever solved this problem. I looked up the kb for the book and foudn nothing had changed since my book, but I have the exact same problem regarding the web service not being available. I cut and pasted the link it uses to test the web service to verify it was available, and my browser hits a page, so i'm assuming it DOES work, is there, and something is just not right, though I've no clue what th ...Show All
Visual C# Delete XML node
- < - < - <RadioBar> <Genre_Genre_Country>Genre_Country</Genre_Genre_Country> - <Genre_Genre_Country> <Title>Boot Liquor Radio - Dysfunctional Country Station, Genre</Title> <url>http://64.72.118.137:7050</url> </Genre_Genre_Country> - <Genre_Genre_Country> <Title>Star104 - Today's Best Country!</Title> <url>http://67.159.26.2:9794</url> </Genre_Genre_Country> - <Genre_Genre_Country> <Title>Classic Heartland - Classic Country, Western, Bluegrass, Alternative Country [Broadband]</Title> <url>http://130.166.72.1:8006</url> </Genre_Genre_Country> - <Genre_Genre_Country> <Title& ...Show All
SQL Server Rights Management in Reporting Service- Organisation wide
Hello Experts, We are using Reporting service as our reporting solution. as of now we manually add user and give them browser rights. Is there a way by which i dont have to add users to the security section of the report for users to view it. As we have a very big organization who would be using some reports. adding each user will be a night mare. Any idea to get rid of this. /Soni Hello Soni, If your company network is a Windows network, you can use Windows Authentication. You can make a group or use existing groups to authenticate users or groups of users to use reports. This is quite a big topic so you could best check BOL on this. Regards, Jeroen ...Show All
Visual Studio Express Editions Image Background Removal
I know with Frontpage and Word it is possible to take a background color out of an image and make it transparent. Is there any way to do this in VBE, or will the image background have to be removed manually with some sort of imaging tool like Photoshop beforehand You can do it with the Bitmap.MakeTransparent() method. I added a bitmap to the resources, named SampleBitmap, with a white background and added a panel to the form: Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint Dim bmp As Bitmap = My.Resources.SampleBitmap bmp.MakeTransparent(Color.White) e.Graphics.DrawI ...Show All
SQL Server restore analyse backup from developer edition to standard edition
I did a backup of an analyse service database (cube) on my developer edition of analyse service.(developer machine) This backup I tried to restore on a standard edition of analyse service. (production machine) error: Errors related to feature availability and configuration: The 'Perspectives' feature is not included in the 'Standard Edition' SKU. Errors in the metadata manager. An error occurred when loading the nr2 perspective, from the file, '\\ \C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\sj cube 1.17.db\Sj Mp2.49.cub\Perspective.22.persp.xml'. Errors in the metadata manager. An error occurred when loading the Sj Mp2 cube, from the file, '\\ \C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\sj cube ...Show All
SQL Server Error when schedule a job in SQL 2005
Hi, I have a SSIS package that contains an Execute DTS 2000 process. This DTS 2000 is calling a legacy package, which resides on the same server. The legacy package is just to import a flat file into the database. When i right click and execute this package, it runs perfectly without any errors. However, if i try to schedule this package as a job, it keeps failing. I checked the flat file source for the permission, it does have the account of the executor of the package. In the view history, i didn't see any more information about why it is failing. It keeps saying "The job failed. The Job was invoked by Schedule 10...." Does anyone have any ideas See this KB about turning on logging and general troubleshooting of ...Show All
Windows Forms How can I add OleDbDataReader Object to DataSource ??
hi, when I retrieve data from remote DB as the following // //.... OleDbDataReader reader; //Executing The Command. reader = command.ExecuteReader(); //Reading if (reader.Read()) { MyBindingSource.AddNew(); MyBindingSource.Add(reader); // It doesnt work, whith error.., } //... So how can I add the reader object to MyBindingSource Thanks Ken Tuker, I found other solution, is creat a new DataSet (NewDS) to retrieve any data from the RemoteDB, then merge the NewDS with the OldDS. OldDS.Merge(NewDS); ...Show All
.NET Development Adding to a database
Hi i'm new to using VB.Net and using databases (MSAccess) with it. I want to add text from a combobox and two textboxs to my database. I'm getting the error message "No value given for one or more required parameters". Any help would be gratefully appreciated. This is my code. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Open a database connection. Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0; " & _ "Data Source=../Video.mdb;Persist Security Info=False" Dim conn As New System.Data.OleDb.OleDbConnection(strConnection) conn.Open() ' Create a DataAdapter object and set it ...Show All
Windows Live Developer Forums v3 gives an error; v2 does not
When I call CampaignManagement.GetCampaigns(..) and reference to v3 wsdls, I catch this error: "There is an error in XML document (1, 552)." If I change all the references to v2, it's smooth sailing. The context of the call itself is some of the very first I wrote and has worked countless times before. Why do you think there is a difference and what do you advise -Tal Hi Jason, I found the problem as I took another look at it this morning. Like I said, I am using VS.NET 2005. If I generate the proxies with the .NET 1.1 wsdl like this "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\wsdl.exe" /n:MsnAdCenterAPI.CustomerManagement /o:CustomerManagement.cs /l:C ...Show All
SQL Server Convert an Access db to SQLexpress
Hello to everybody, I had just installed SQLserver Express. I'd like to know if tool to migrate an Access db to SQLexpress exists Thank you Hello Try to use the DTS tool. You find it under C:\Program Files\Microsoft SQL Server\90\DTS\Binn\DTSWizard.exe If you don't have it go to this link http://www.microsoft.com/downloads/info.aspx na=46&p=16&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f4%2fd%2f44dbde61-b385-4fc2-a67d-48053b8f9fad%2fSQLServer2005_DTS.msi and install SQLServer2005_DTS.msi 5.0 MB With this tool you import access/excel and many more into SQL server Express ...Show All
Visual C# Using Visual C# code in Visual Web Developer Express Edition
for aspx development, I'm using Visual Web Developer Express Edition. Is there any way to share classes that I develop in Visual C# in Web Developer I know I can copy *.cs files to the "App_Code" folder, but I would prefer to have them both using the same file ( a la "add as link" ). Also, when I *do* copy classes to the "App_Code" folder, the web site runs fine in the Web Developer IDE, but if I try to navigate to it in my browser, I get an error message saying it doesn't recognize the class. ( This is more of a Web Developer question, I grant you, but since I'm on the subject, I hope its alright to ask... ) Thanks for any help, Kirk There is no header, Just add the dll to your pr ...Show All
Internet Explorer Development IE7 and desktop icons
I just installed Internet Explorer 7 today, which I guess is a.k.a. Windows Live . All of my fancy customized shortcuts on the desktop disappeared and each got replaced by the same generic windows icon. Right-clicking & changing the icons in properties no longer works. Also, when I create an internet shortcut while browsing, that creates a shortcut with that same generic icon (not even an explorer logo). Now my desktop is just one forest of identical icons. Anyone know how I can fix this I've wasted all day without success. CPIAD That is exactly the problem and question I am also experiencing...I finally uninstalled both IE7 and Netscape 8.1 (which is also behaving unsatisfactoril ...Show All
Windows Live Developer Forums Custom popups in 3d don't dock to pushpins correctly
I have created custom popups that dock a div to the pushpin location as described in other threads. This works fine in 2d, but in 3d the popups don't line up with the pushpins correctly. It appears that the x,y values are not correct being passed by the pushpin callback function. I have not yet found how to locate the pushpins through code to dock the div to. Has anyone figured out a work around to this yet other that randomly subtracting some value from the div placement. Marc Rempel I have hit the exact same issue last week Gascho. I am yet to solve it. For me I'm tring to get my custom popups to work in 3D, I have the "shims" working for other peices but it appears that the x and y in the callback function is off. ...Show All
