Error "PrintForm Is Ambiguous In The Namespace 'Microsoft.VisualBasic.PowerPacks.Printing'"
Aug 31, 2011
i used printForm to print forms, but when i installed the powerpack 3.0 it doesn't work anymore.i am always getting an error "PrintForm is ambiguous in the namespace 'Microsoft.VisualBasic.PowerPacks.Printing'" i am using visual studio 2008 professional edition.
View 3 Replies
ADVERTISEMENT
Apr 7, 2009
i have 2 windows machines with VB 2008 installed on both. I created a windows app on 1 machine and put the powerpacks dll file with the app folder anyway. For some reason, when i load the project up on my other machine, i just get a never ending list of errors related to PowerPacks. Why? I have exactly the same version installed and tried download the PowerPacks on Windows website. I just get over 102 errors saying Type 'Microsoft.VisualBasic.PowerPacks.LineShape' is not defined. Anyone care to enlighten me?
View 3 Replies
May 15, 2010
If i draw a printform into my form from Visualbsic. poerpacks toll box then i get two errors:Error 1 'PrintForm' is ambiguous in the namespace 'Microsoft.VisualBasic.PowerPacks.Printing'. C:UsersAlvinDocumentsVisual Studio 2008Projects[code]....
When click on this error i Get:
Me.PrintForm1 =
New Microsoft.VisualBasic.PowerPacks.Printing.PrintForm(Me.components)
Second error
Error:PrintForm' is ambiguous in the namespace 'Microsoft.VisualBasic.PowerPacks.Printing'. C:UsersAlvinDocumentsVisual Studio 2008Projects
isskov calculator[code].....
View 2 Replies
Feb 1, 2012
I seemed to have have ruined my settings on VS 2010... I can't get the Shapes to work just after I had fixed the problem with the PowerPacks, and then it deleted all of my shapes I had on my form after I was tweaking the code and added another shape. And ever since, the shapes make errors and I can't change there colors. I've tried reinstalling VS 2010, and changing refferences doesn't work anymore. The title is the problem I have with trying to add a shape through the code in my project, here is the code for that:
Public Class Form1
Public Circle As New Microsoft.VisualBasic.PowerPacks.OvalShape()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code]....
View 18 Replies
Sep 1, 2010
I have a project which opens a simple Excel file and populates it. It was working fine until this morning, when it has suddenly started giving me the error above: 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'.I haven't changed any project references, or anything within the file itself. The references include Microsoft.Office.Interop.Excel. The imports statement is there: importsMicrosoft.Office.InteropThe object declaration is also complete: Dim xl AsMicrosoft.Office.Interop.Excel.Application which is the line that's giving me the error!
View 2 Replies
Jan 16, 2009
I've started to use a Vista machine for development. In case it is significant: I'm using MSBee so that I can code in the Visual Studio 2005 IDE while still building against the 1.1 framework.On the Vista machine, when I tried to build a particular vb project, I got this error:
error BC30464: Namespace or type'Compatibility' in the project-level Imports 'Microsoft.VisualBasic.Compatibility' cannot be found.
The same project built fine on my old XP machine. I checked in this folder on my Vista machine:
C:windowsmicrosoft.netFrameworkv1.1.4322
...and sure enough, "Microsoft.VisualBasic.Compatibility.dll" was missing. So was "Microsoft.VisualBasic.Compatibility.Data.dll". Copying them from my XP machine to my Vista machine allowed me to build the project successfully.I'm just a bit puzzled as to why this happened. Why was "Microsoft.VisualBasic.Compatibility.dll" missing? I'm also not very comfortable with my chosen solution - copying the DLL manually. It works, but surely there must be a better way.
As far as the configuration:
Vista:
.Net Framework 1.1
.Net Framework 1.1 SP1
.Net Framework 1.1 SDK
[code]....
View 1 Replies
Mar 24, 2010
Is there any official assurance that the Microsoft.VisualBasic namespace will continue to exist in the future?
View 13 Replies
Mar 9, 2010
Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel
View 12 Replies
Dec 9, 2009
It says .Application ambiguous Error6'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Word'.
Imports Word = Microsoft.Office.Interop.Word
oWord = CType(CreateObject("Word.Application"), Word.Application)
oDoc = oWord.Documents.Add()
View 5 Replies
Jul 17, 2009
I'm have a program filled with forms for the user to enter data to determine fluid and reservoir properties. I want the ability to be able to print out the forms so they may be kept in binders. I'm using the PrintForm function from the Visual Basic PowerPacks but I'm having a problem getting some of the larger forms onto a single page. Is there anyway to zoom or autofit using this function? I've already tried adjusting the margins and that is not enough. I've been trying to look through the object browser but it hasn't worked very well yet.
View 10 Replies
Jan 3, 2011
Using Visual Studio 8. On old computer, my application works. When installed on a new computer I get an error message:
Line of code causing error:
Dim WordApp
As
New Microsoft.Office.Interop.Word.Application
Error message: Error 103 'Application' is ambiguous in the namespace
Both computers reference:
C:WindowsassemblyGACMicrosoft.Office.Interop.Outlook12.0.0.0__71e9bce111e9429cMicrosoft.Office.Interop.Outlook.dll Old computer is 32 bit XP. New computer is 64 bit Windows 7.
View 2 Replies
Dec 8, 2011
I have a method that looks like this :
Function ExecuteAndLogError(Of TResult)(ByVal code As Func(Of TResult), _ByVal sql As String, _Optional ByVal parameters As SqlParameterCollection = Nothing) As TResult End Function
I am getting this compiler error : 'Func' is ambiguous in the namespace 'System'.
[Code]...
View 1 Replies
Jul 24, 2009
I am printing my form by using the printdocument of VS and the printform found in powerpacks. I never got the preview to work so when ever I want to print I send my information on a new form (form1) which I have altered ( colour borders ) so it is printable. To print form1 I have added a toolstrip with a print button so when the user sees all is ok on the form1 he clicks on it which hides the toolstrip and prints form1. All this sequence works fine. The problem I have been getting lately is that I can print on the first try but when I call another form to print the toolstrip ( with the print button ) is always hidden. I have to exit the application and re enter to get it to show up. Any solution to this or even how to print in a better way. (have the preview to work for example ). I have tried to use printdialog to print but I have never been able to send the document to print.
View 4 Replies
Apr 18, 2012
When I start my application I get the following error:
method not found microsoft.visualbasic.msgboxresult
I have tried repairing my .NET installation.
Note: This error only occurs on one machine. On every other machine it works fine which makes me think something with the .NET assemblies was corrupted. It was working fine on the broken machine a few days ago.
View 2 Replies
May 20, 2012
I'm having trouble with a more complex program, so I've created a simple program to highlight my issue (see code block below). When I declare a Collection generically (like I have below) and try to call IndexOf, I get the following compiler error:
'IndexOf' is not a member of 'Microsoft.VisualBasic.Collection'. (BC30456)
If I instead declare my Collection as a collection of strings (Public mycollection As New Collection(Of String)), I then have access to the usual methods, but the .Add method then only allows a single string to be passed to it. This means that I can't use a key, which seems to be the point of a collection. Is there any way to have a general, keyed collection that can use IndexOf?
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
[code]....
View 14 Replies
Mar 15, 2012
VB.net application crashes without specific error
I developed one application in VB.Net 2010. It worked fine on my laptop. Now when I run this on another PC, it just crashes and give windows error as below.
[CODE]..........................
Along with this.
[CODE]......................
This application required .Net framework 4 & Oracle 9 ODBC drivers, which I installed on new PC.
I am not able to figure out what is the problem exactly, however it seems something with .Net framework itself.
View 2 Replies
Oct 9, 2011
Error is Simple Application -- Error Type (A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll)
View 3 Replies
May 29, 2009
I would try to make some simple programming with the Shape Controls provided in the Microsoft.VisualBasic.PowerPacks Namespace. I have used this MS site for reference: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VBPOWERPACKS.v30/dv_vboshapelinecon/html/d43d1807-9313-435f-a09e-3d07c6f9e806.htm. At the top of the form code editor I have added the line "Imports Microsoft.VisualBasic.PowerPacks". Then I have tried to add the rest of the code in different Event procedures, but at the "Dim canvas As New ShapeContainer" and the "Dim theLine As New LineShape" I get the following error message: 'ShapeContainer' is ambiguous in the namespace 'Microsoft.VisualBasic.PowerPacks' (I get the same message regarding the LineShape).
View 3 Replies
Sep 2, 2009
I have a large project where we have 2-3 dll projects that are converted from VB6 to VB.NET. We have fixed all the issues that caused compilation errors, and most of obvious issues in running, so now we have basically a program up and running. The exe is created from scratch in VB.NET, using a lot of functionality from the converted dll's (including GUI forms). What I wonder is when I run the program in debug mode, I get a bunch of warnings in the "Immediate Window" saying:
A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll
...and some of other type (but most of them in Microsoft.VisualBasic.dll).I was wondering if this is common in projects converted from VB6, or if it is caused by bad design in our code...
View 2 Replies
May 25, 2011
I now have SQL Parameters set up and I'm using them to save/delete/add my data. This all works well, except when it's trying to save a combobox to the datatable it appears with the error above.Majority of my comboboxes have datasources, and the valuemembers of these are the actual list items, not the ID's of the list items.I'm not sure why this error could be happening, I'm fairly sure I've connected everything to the binding source correctly; I've checked it a few times.Does anybody know what the cause of this could be? I've looked around a bit and I haven't found much
View 7 Replies
Jun 1, 2010
We have a VB web application that for some reason breaks when some clients run Windows Updates. To resolve the issue we have to force the application to recompile on the servers where the application is installed. In some instances we must do this multiple times and/or restart IIS as well to resolve the issue.
This didn't start happening until October of 2009, and then suddenly it happened all the time... but not for every client, and not with every update. It continues to happen and we have been at a loss to understand why. Is anyone else experiencing this issue or found a way around it? If there is something in our code that we can alter to keep this from happening I would love to know about it, as we spend time and resources troubleshooting and resolving an issue that doesn't exist until a Windows update runs and our application becomes un-usable until resolved.
View 1 Replies
Jun 17, 2011
I encounter this error as mention in the subject line. I just change from windows XP 32 bits to windows 7 64 bits, and the following code were working fine in windows XP, but in windows 7 I get ambiguous namespace for all the DIM cnn As New ADODB.Connection and DIM rst As New ADODB.Recordset.I Have no idea what is going on.However, the exe that is created from my old XP runs fine on both XP and Windows 7 32 bits but not the Win7 64 bits.
Public Sub mStartConnection()
Dim initPath As String
Dim File_Reader As StreamReader
Try
[code].....
View 4 Replies
May 10, 2011
While I am trying to load my project, I've got some errors like the following[code]...
View 1 Replies
Oct 26, 2011
I'm having problems with this error [code] I already imported the sqlserver references but it still don't work.
View 4 Replies
Feb 21, 2012
I got 11 errors in my VB program. All the errors look similar: X is ambiguous in the namespace Y
Error line: Imports System.Net.Sockets
Imports System.Text
Module Module1
Sub Main()
Dim serverSocket As New TcpListener(System.Net.IPAddress.Parse("192.168.1.100"), 8888)
View 1 Replies
Jun 14, 2012
We are using MailBee for the first time but get this error:
'Smtp' is ambiguous in the namespace 'MailBee.SmtpMail'.
What does it mean and how can we create the objSMTP object?
Here is what the complete coding looks like:
Imports MailBee
Imports MailBee.DnsMX
Imports MailBee.Mime
Imports MailBee.SmtpMail
Imports MailBee.Pop3Mail
[Code]...
View 1 Replies
Jul 30, 2009
This line is throwing the error; Public WithEvents CurrentDoc As mshtml.HTMLDocument
Researching the error tells me that HTMLDocument isn't fully qualified. Isn't this fully qualified? If I change it to Microsoft.mshtml.HTMLDocument then it says it's not defined.
[Code]...
View 3 Replies
Mar 10, 2009
I have imports namespace System.Data.SqlClient.I just create object of SqlConnection,But error is there-
'SqlConnection' is ambiguous in the namespace 'System.Data.SqlClient'.
[Code]...
View 1 Replies
May 16, 2011
I'm currently working on an existing ASP.NET project. At the moment I have to integrate
a new componant so for that purpose I had to change the framework target from 2.0 to 3.5. After regenerating the solution, I'm now dealing with a strange issue.
Here's the code :
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<System.Web.Script.Services.ScriptService()> _
And the last line returns that error 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'I have definitely no clue what's going on in my code ?! Is it an internal error of the ScriptService constructor ?
View 2 Replies
Mar 26, 2010
I have this application where I am getting this error. What can I do to resolve this?
View 2 Replies