Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    vbnet


Print Form Using Visual Basic PowerPack PrintForm?

I have created a form that we use for our employee goal setting. I would like to let the users print the form. The form is quite large and has scroll bars. I am trying to use the Printform to print the form. I would like to use autofit or some other type of scaling to get the form to fit on one page. I have done some looking aroung and have seen the following instrutions a couple of times.

1.Drag a PrintForm component onto the Form from the Visual Studio Toolbox

2.Set the PrintForm.BodyContainer property to reference your Form

3.Drag a PrintPreviewDialog component onto your Form from the Visual Studio Toolbox

4.Set the PrintPreviewDialog.Document property to reference the PrintForm component

5.Add a button and button click handler. In the handler call PrintPreviewDialog.ShowDialog()

I don't know how to set the PrintForm.BodyContainer propery (number 2). I am using Visual Basic 2010 express.

View 3 Replies (Posted: Jan 20th, 2011)

Sponsored Links:

Related Forum Messages For vbnet category:
How To Print Whole Form Using PrintForm PowerPack
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.

Posted: May 14th, 2010

View 11 Replies!   View Related
Use PrintForm From Powerpack , But Is Does Not Have Fit Size Function?
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]....

Posted: February 17, 2009

View 1 Replies!   View Related
Cannot Print Form In Landscape Orientation In Visual Basic 5.0
I have Visual Basic 5.0 and need to print the full form in landscape mode. My form has lines,textboxes, and labels that need to be printed as they are on the screen. I understand that printform.print does not respond to changing to landscape orientation. I have tried the paint picture method, but did not like the quality of the text. I have also tried having a common dialog box before printing and even set the default to landscape, but the form still printed in portrait. Is there a way that I can print my form in landscape mode in Visual Basic 5.0?

Posted: July 18, 2009

View 1 Replies!   View Related
Convert And Print Structure Contents To A Form In Visual Basic?
I am trying to print the contents of a structure onto a print page in Visual Basic(visual studio 2008). However my for each loop generates a conversion error?

Public Class Form1
Structure IncomeRecord
Dim IDVal As Integer


Posted: Oct 27 10 at 19:12

View 1 Replies!   View Related
Print Form With PrintForm Object Its Printing Only The Showing Part Not All The Form?
i am working on Scrollable form, when i am trying to print this form with PrintForm object its printing only the showing part not all the form this the code which am using.Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable) End Sub

Posted: October 18, 2011

View 7 Replies!   View Related
Print Menu Visual Basic?
I have a method which is being used to print pages in a slide show.

Public Sub printSlide(ByVal e As PrintPageEventArgs)
If Current < fSlides.Count - 1 Then


Posted: Mar 3 at 21:40

View 1 Replies!   View Related
Create A Print Button Using Visual Basic?
I want to be able to have a print button on my form that when clicked, automatically prompts the users printer to print the form in it's current state when the button was pressed.

Posted: December 09, 2009

View 6 Replies!   View Related
Creating A Print Menu In Visual Basic?
I have a shopping transaction form and also another form which is the receipt form. I intend to print the receipt form by using menus.

Posted: May 20, 2010

View 2 Replies!   View Related
How To Print From A Console Application In Visual
I was wondering if someone could tell me how to print text from a console application to the default printer.

Posted: Apr 25 11 at 17:53

View 1 Replies!   View Related
Printing Powerpack To Emulate Old Printer.Print
I am using the VB.Net printing powerpack to emulate the old Printer.Print from VB6.The printed output sent to a pdf doc via cutepdfwriter looks ugly/strange.

Posted: 04 January 2012

View 14 Replies!   View Related
Print Contents Of Dtagrid In Visual Basic 2008?
print contents of dtagrid in visual basic 2008?

Posted: October 10, 2011

View 5 Replies!   View Related
Print Database Table Using Visual Basic 2008?
I used the following code to print out my database. but it is print out empty page, I would like to be able to print database from visual basic.I know how to go about it? the following code is print empty page. Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As


Posted: October 06, 2009

View 1 Replies!   View Related
Disable Print Screen Button In Visual Basic 2008
Please tell me how can i disable print screen in Visual Basic 2008.

Posted: December 31, 2010

View 13 Replies!   View Related
Print RTF Using PrintForm Control?
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]....

Posted: June 18, 2009

View 9 Replies!   View Related
Use PrintForm To Print Landscape?
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

Posted: December 20, 2011

View 5 Replies!   View Related
Use Printform And Print Text On Same Page?
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)


Posted: July 02, 2009

View 4 Replies!   View Related
Printform Print Differently On Different Screen Sizes?
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.

Posted: July 22, 2009

View 6 Replies!   View Related
VS 2008 Execute Printform.print() Only The 1st Record Is Shown / BindingNavigator
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?

Posted: May 12th, 2010

View 5 Replies!   View Related
Print Text From A Text File In Visual Basic?
I've been trying to print out a text string to a printer that I have connected. I cannot print using the PrintDocument.Print() as this sends the string as a graphic to the printer.I don't know C# and I am very new to full fledged VB having spent most of my time using VBA in Excel

Posted: February 18, 2009

View 3 Replies!   View Related
Printing A Form Without Powerpack?
I'd like to know how to print a form to printer without using the vb powerpack. Also, I'd like for the users of my program to be able to save a copy of the form to a jpeg file. I'm using Visual Basic Express Edition 2008.

Posted: March 10, 2010

View 13 Replies!   View Related
Extracting Visual Basic Source Code From Visual Basic EXE?
How do you extract source code from a VB.NET .EXE file?

Posted: January 24, 2011

View 3 Replies!   View Related
Identifiers In Visual Basic Form?
I have a form, user logs in and another form is generated. User submits a query. My problem is that I cannot keep a record of who is making the query.

The user has a uid and usernamae but once the new form is generated where the user submits the query both these identifiers are gone. Is there a way in which I can overcome this?

Posted: Oct 10 11 at 13:41

View 2 Replies!   View Related
Visual Basic Form Design?
Okay guys this is my first thread as well as my first dive into programming. So my question is, I want to have this design on my form that would fade from blue to black, and I have no idea how to do this. So picture a form thats blue and when you look

Posted: February 19, 2012

View 3 Replies!   View Related
Adding A String To Visual Basic Form?
How can I add a string to my visual basic form?

I'm creating a study application for myself and this is what I have:

Imports System.Diagnostics
Public Class Form1
Dim amounts As Integer


I'm trying to display a line of text on my form saying.. "Prevented firefox from running X times.

X being my "amounts" variable.

Here's what my form looks like:

So how can I put my amounts variable in place of the X?

Posted: Sep 18 10 at 21:11

View 1 Replies!   View Related
Display .rpt In Visual Basic Submit Form
I am trying to display *.rpt file in visual basic submit form, how would I do that? I have Report2.rpt and Form1.vb, I like to call Report2.rpt when submit button is clicked, it will then show the report on screen.Private Sub SubmitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton.Click.[code]And also how do I get the date to be queried in my crystal report, I don't want all records, I just want the records in between fromDate and toDate.

Posted: September 02, 2009

View 2 Replies!   View Related
Render A Powerpack RectangleShape At Runtime To A Form?
The generation of the shape is controlled at runtime by data read from a file to set all the properties I care about e.g. Size, Location, Color, BorderWidth etc. Now, I would like to render it on a form. This should be trivial, but I can't just add it as a control so something different must be done...

Dim rc As RectangleShape
rc = New RectangleShape
rc.Location = New Point(100, 100)
rc.Size = New Point(150, 150)

Do I need to create some container on the form first, am I missing one of the commands to cause it to draw and/or connect it to a specific form, something else?

Posted: 08 May 2009

View 1 Replies!   View Related
.net - Embedding A DOS Console In A Windows Form With Visual Basic
I've managed to find from other questions some data that allows me to achieve the next code:

Imports System.Runtime.InteropServices
Public Class Form1
<DllImport("user32.dll")> _


My problem is that I can't manage to find the DOS console window.

The question in C# Embedding a DOS console in a windows form

Posted: Jan 12 at 8:01

View 1 Replies!   View Related
Adding Custom Buttons To A Visual Basic Form
Adding custom buttons to a visual basic form

Posted: October 18, 2009

View 6 Replies!   View Related
Change The Skin Of The Form In Visual Basic 2008?
how can i change the skin of the form in visual basic 2008 .

Posted: Jul 9th, 2009

View 1 Replies!   View Related
Crash When Open Visual Basic Form Editor?
I have a appliction developed on Visual studio 2003, .Net Frame work 1.1.After I migarted that application to Visual studio 2008, .Net Frame work 3.5, Visual Studio is crashedas openingsomeVisual basic designer filesby Visual Basic Form Editor.The below is detail error message of Visual studio:

Problem signature:
Problem Event Name:CLR20r3
Problem Signature 01:devenv.exe[code]......

Posted: September 10, 2009

View 2 Replies!   View Related
Create A Layered Form In Visual Basic .net 2010?
how to make a layered form (im a begginer!). I've found something about calling API, but that sounded like old; cant I do this with .Net? If api is necessary, with that hwnd thing, how do I call it? And if you are so kind, is there a way to search for thing only for visual basic .net 2010? Because i dont find a way to practice a strict filter, and visual basic 6, or old visual basic stuff (if not other languages) appear mixed with the program i use.

Posted: February 15, 2011

View 1 Replies!   View Related
Create Stylish Form Skin In Visual Basic?
How to make stylish form in VB.Net?I am working on Final year project for graduation. Project on a "Service center" of a Mobile company. how to make project more beautiful or easy user interface.

Programming language: VB.Net (2008)
Database: SQL Sever

Posted: Sep 1 10 at 10:38

View 2 Replies!   View Related
Make A Form In Visual Basic Have A Fullscreen Button?
I have a form in visual basic 2008 express edition and i want to be able to press a button to make the form go into fullscreen i have tried various codes but they all just remove the taskbars and i want the form to increase in size and not leave a section of the side blank i want it to sort of zoom the form size

Posted: February 17, 2010

View 10 Replies!   View Related
Place The Icon And Label In Visual Basic Form?
Trying to use icons on my visual basic form but don't know how to place the icon and label so that they are linked and when the are clicked they get highlighted and stuff like the basic desktop icons.

Posted: December 13, 2011

View 2 Replies!   View Related
Copyright 2005-08, All rights reserved