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].....
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.
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?
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.
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.
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
I am looking at the powerpack ovalshape control. I cannot understand why there is no text property. When I go into the paint event and expose the e.graphics object and I do: e.Graphics.DrawString("Data", New System.Drawing.Font("Microsoft Sans Serif", 9, FontStyle.Regular, GraphicsUnit.Point), Brushes.Black, 15, 30)
The point coordinates 15, 30 are relative to the form not the shape. This is very frustrating. Also one cannot add a control like a label to the shape. Is there something I am missing or is this just a limitation of the ovalshape control?
I was make some applications in Vb.NET 2010, but when I try run them in another computers, it gives me the exception that I need Visual Basic Powerpacks V10 I was download and install the PowerPacks 3, but it doesnt work.
I am moving Visual Basic 2010 Express from a 32 bits Windosw 7 machine to a 64 bits Windows 7 machine. My project contains a PowerPacks line. I have installed the PowerPacks (VisualBasicPowerPacks3Setup.exe) on the 64 bits system, and see them in the toolbox. When I try to open the project on the 64 bits machine. however, I get error messages:The designer cannor process the code at line 56:
Me. ShapeContainer1 = New Microsoft.VisualBasic.PowerPacks.ShapeContainer
The referenced component 'Microsoft.VisualBasic.PowerPacks.Vs' could not be found
I then thought I would just remove the (purely cosmetic) line on the 32 bits machine, but cannot discover how to do this (I would have though: rihgt click, and then delete, but this doesn't exist)
I am using Powerpacks from Microsoft. Especiallly the Printform routine. When i run it on my PC it runs fine, But when i install the development on the clients PC i get a error that says that the powerpack is not ibstalled? Do i need to add some reference? Will this be solved if i complie the solution with VB 2010 because i see the powerpacks is part of 2010? What if i install the poerpack on the clients PC?
I have made an form in vb 2008 which uses the printform component to print my form. I can run the app on my PC as well as on my notebook. But I cannot run it on others' PC. Though PCs having Internet connection can download Visual Basic Powerpacks 1.2 from the setup, I want to install it on PCs having no internet connection.
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).
When I draw a line on the form using Visual Basic Power Packs the ends of the line are squared off. Is there way to round them off? In code I could write something like this to do it:
vb.net Dim pn As New Pen(Color.Black, 5) pn.StartCap = Drawing2D.LineCap.Round pn.EndCap = Drawing2D.LineCap.Round
I have a form which i need to print, however, I need to know how to format it, margins, etc... I've got it to work by adding the PrintForm powerpack and using the simple code below, but the margins are too big and it is not printing the rich text box I have.[code]....
I have created a windows application and it was working fine, then I added in the printform component from PowerPack3 and here the error starts. The application works fine on the computer I wrote it on, but when I move the exe over to another computer (which I have installed PP3 and the .net framework) I get an error. The only difference between the computer I am writing it on and trying to run it on, is that this computer has vb.net 2010 express edition installed. What do I need to do from here to get this working?
Right now, I have a PrintForm dragged onto the screen and it's named PrintForm1. I need to print this form in landscape mode so it fits all in one page.Here is the code I am currently using to print:
Private Sub Print_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Print.Click PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeFullWindow) End Sub
I'm tired of having my dropdownmenu come up in my printpreview and print, so I've decided to use a timer and a progress bar to wait a few seconds before the print or printpreview is started.[code]The problem I have is when I go to print or printpreview, it will work but the program stops debugging and tells me that the form has to be focused. What up with dat?
I have a problem when creating installer for my project. My project is utilizing Powerpacks 10 and will be deployed on XP machines. These machines do not have internet connection.When I create the installer, can I include the Powerpacks 10 to be installed offline? Currently I have no idea to make the installer to include the powerpacks and install it offline - it always downloads the required files from internet.I looked it up on Microsoft websites and they only offer Powerpacks 3.
I have form with text boxes that are collecting data from access database.Now I want to print this, but selectively.I know how to print whole form using PrintForm PowerPack. But I want to print only labels and text from text box.
I have a form that I am using "PrintForm" to print out, however there is a notes section that can contain a lot of text, seeing as the Printform function only takes a bitmap of the form, it cuts off the text. I have another function that will print the contents of a textbox - I'd like to display this below the bitmap.
First is the code for printing the bitmap - second the textbox
PrintForm1.PrinterSettings.DefaultPageSettings.Margins = New System.Drawing.Printing.Margins(0, 0, 0, 0) PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
I try to use printForm from powerpack , but is doesnot have fit size function. I use the following code to print , using setResolution to set the size to fit A4 paper. But I cannot print the scrollable area. 1) If using such approach, how can I print scrollable area2) With PageSetupDiaDialog, how can i set to default orientation to Landscape. I use pageSetupDialog.PageSetting.Landscapte = true, but there is error when it runs
Public Function calculatePrintPageNumber(ByVal form As Form, ByVal panelsize As Size) As Int32 Dim panelHeight As Integer = panelsize.Height Dim formHeight As Integer = form.Height Return System.Math. Abs(formHeight[code]....
I would like to be able to print 3 pictures that go on an 81/2 x 11 paper vertically with 3 corresponding labelsI currently just use power packs to print screen image of my forms, but for this it wont work because the maximum size i can set the form 1036/780 is only about 2/3 the size of the 81/2 x 11 sheet of paper
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim PDFFileName, PDFTest As String Dim PDFNameLength, SlashLocator As Integer
I am creating a program that I would like to distribute. I am using printform in VB 2008 to print my form. My form is the size of my computer screen...15 in. If the program is run on a different computer with a different screen size, will it affect the appearance of the form on the screen or the printing of the form? If the form is run on a laptop, for example, with a smaller screen, will it cut off my form and thus cut off the form during printing? Will a bigger screen increase the size of the form and not allow it to fit correctly when printed? I was just curious and wondering.
I'm trying to use PrintToFile from the Power Packs PrintForm Class and I have a question. I'm able to save the form to a file, but now how to print it later if needed. MSDN says that it's saved as an Encapsulated PostScript file. Adobe Illustrator claims it will open EPS file, but it won't open this one. How I can print this file in vb.net? If you've never used this before, here is my sample code to save the form to file in case someone wants to test it out.
If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Me.PrintForm1.PrintFileName = SaveFileDialog1.FileName & ".eps"Me.PrintForm1.PrintAction = Printing.PrintAction.PrintToFile Me.PrintForm1.Print(Me,PowerPacks.Printing.PrintForm.PrintOption.Scrollable) End If
So i am working on a GUI for a game (just some messing around in VB.net tho) and i came across the following problem. The board of my game consists of a 70*35 grid of RectangleShapes on which i can move around. When i start my program it renders the board from right to left on the screen and i have serious lag when i try to move around on it. I know you'd normally use double buffering to reduce flickering, but that didn't do anything (unless i'm doing it wrong).
This is my code:
Code: Dim player As Player = New Player Dim board(70, 35) As RectangleShape