VS 2008 - Printdocument Of VS And The Printform Found In Powerpacks
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
ADVERTISEMENT
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
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
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
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
Dec 2, 2009
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?
View 3 Replies
Mar 15, 2010
I have a number of rectangles using powerpacks 3.0 named r1, r2 etc. how to loop through these?
View 2 Replies
Dec 16, 2009
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
View 3 Replies
May 12, 2010
I have a Bindingnavigator on my form and is using Printform. Problem is whenever I execute Printform.print() only the 1st record is shown. How do I print the other records? How can I do a Print All?
View 5 Replies
Nov 15, 2010
We have made on run time a printDocument object.
Dim pd As New PrintDocument
pd.Print()
How do we get the PrintPage and the BeginPrint events?
View 1 Replies
Jan 16, 2012
I have this rather annoying problem when printing in VB.NET. I use the PrintDocument object and after it has done its job, the form gets minimized to the taskbar. I tried to force the focus on the form but to no avail. I was just wondering if someone else has encountered this problem and maybe has a solution for it?
View 6 Replies
Dec 7, 2010
I want to use the added functionality (for word wrap etc) of the TextRenderer.DrawText method.... but this does not seem to work correctly on the Graphics object in the PrintPage event in the PrintDocument Object and does not take into consideration any transformations that have been applied. Does anyone have a replacement way or workaround for this?
View 1 Replies
Feb 18, 2011
I am not able to find site where to download ms Powerpacks 10, I use it with vb.net 2010.
View 2 Replies
Dec 3, 2009
The string is measured to determine how many characters and lines it contains via the following code:-
'Determine characters and lines required to print the core report data e.Graphics.MeasureString(str, printerFont, sz, strformat, chars, lines)I've implemented a pageNumber integer variable which I increment in the PrintDocument.PrintPage.
I'm wondering how to print the TOTAL number of pages, not just the current page? Could this be worked out via the number of lines and page type (portrait/landscape) and perhaps margins?
View 2 Replies
Sep 16, 2010
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.
Where I can found the PowerPacks V10?
View 8 Replies
Jul 10, 2010
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)
View 5 Replies
Oct 1, 2010
We have an VB.net application that is being moved from one box to another. It runs great on the old box. The new box is configured the same as the old one but is on newer hardware. When I run the application on the new server it complains that the adobe toolkit that we use can not be found.
View 2 Replies
Dec 14, 2009
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?
View 8 Replies
Oct 3, 2011
I'm attempting to move an image (technically a Powerpacks ball...).
Public Class Form1
Dim XSpeed As Decimal
Dim YSpeed As Decimal
Dim BallLocation As New Point(Ball.location.x, Ball.location.y)
[code].....
View 4 Replies
Jan 29, 2011
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.
View 1 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
Apr 19, 2011
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
How could I do it with Power Packs?
View 3 Replies
Jun 18, 2009
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]....
View 9 Replies
Feb 9, 2011
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?
View 14 Replies
Dec 20, 2011
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
View 5 Replies
Nov 25, 2011
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?
View 2 Replies
Jan 7, 2011
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.
View 3 Replies
May 14, 2010
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.
View 11 Replies
Jul 2, 2009
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)
[Code].....
View 4 Replies
Feb 17, 2009
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]....
View 1 Replies