Questions which related to the dotnet method PrintForm.
Questions tagged [printform]
25 questions
7
votes
1 answer
VB.NET Visual Basic Power Packs not working on VS2015?
I have downloaded the VS Basic Power Packs from the link here
https://msdn.microsoft.com/en-us/library/cc488277.aspx
but I have no idea why it does not appear in my project toolbox. I have also added the project reference for both the VB Power Packs…

Student
- 432
- 2
- 10
- 30
3
votes
2 answers
VB.Net PrintForm autofit
Im having trouble with autofitting the printed form in my application.
My code at the moment looks like this.
Dim pf As New PowerPacks.Printing.PrintForm
pf.Form = Me
pf.PrinterSettings.DefaultPageSettings.Landscape = True
…

Dr.Pepper
- 559
- 4
- 11
- 27
3
votes
1 answer
Python keep whitespace in a string
How can i keep white space in a string?
I have a string
piece = "**\n *\n *"
**
*
*
and I want print this in the center, but it I use this function, doesn't keep the white space
print '\n'.join('{0:^20}'.format(x, 'centered') for x in…

fege
- 547
- 3
- 7
- 19
2
votes
5 answers
Printing scrollable form
I have a scroll-able form which I would like to print entirely.
I have already tried using this code to print it:
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
…

kfirba
- 5,231
- 14
- 41
- 70
1
vote
1 answer
Selecting printer and settings margins of page with printform component
How can I add printer selection dialog, and how can I control margins of a page?
I tried so many things in code (printdocument codes works but they don't show my form) but they did not work. I'm using this code to print form:
With Me.PrintForm1
…

vburako
- 117
- 1
- 2
- 10
1
vote
1 answer
Printing Windows Form into A4 size page
I am creating a billing software.I need to print the invoice.Size of the invoice is A4.I am printing it using
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
Now the problem is:When I am printing, it is not printing the…

Tanmoy Banerjee
- 1,433
- 3
- 22
- 31
1
vote
1 answer
.Net export Windows form to PDF
Is there a way to export Windows forms directly to a PDF in C#? I created some nice plots using ZedGraph, added them to a Windows form and would like to export them to a PDF. PrintForm looks promising if there is some way to select the destination…

Lukas Bystricky
- 1,222
- 6
- 16
- 34
0
votes
0 answers
VB6 vs VB2017 print a form
I have developed a program for windows with visual basic 6 for printing orders in a pizzeria, I display a window and print it with "me.printform". Now I'm redoing it in vb.net, but the print quality is bad. I've read several solutions but it doesn't…

Elviss
- 1
0
votes
1 answer
Certain JPEG images not visible in Adobe Form while others are
I have this strange problem where certain JPEG images are not visible in Adobe Form while others are. What could be causing this?
Thank you in advance,
Joshua

Joshua Schroijen
- 376
- 6
- 23
0
votes
0 answers
Cant attached printed pdf document as email attachment in VB.net
I am able to create a pdf document and I can browse the folder and open the document with no issue. But when my code try to attach the file as an attachment then it fails with this error, but the path and filename is correct. I suspect the file is…

AquaAlex
- 360
- 7
- 17
0
votes
0 answers
PrintForm not printing full page
I'm trying to print my windows form using VB.NET PowerPacks PrintForm. Below is the code I'm using to print the form. When I print the form it is not filling the full page no matter how long I make the Form's height, it leaves the space at the…
0
votes
3 answers
JAVA: Remainder % with printf() not working
I am trying to write the equivalent of
System.out.println(a + " % " + b + " = " + r);
with the print(f)
System.out.printf("%d +'%' + %d = %d",a,b,r);
but it says the format string is malformed. I am guessing it is because of the % sign. Is…

Coralzee
- 67
- 1
- 1
- 6
0
votes
1 answer
Printing Form in Landscape using PrintForm Function
i have a question i am trying print the form in landscape so it can print all of the content of the form.
Here is the print preview look like it is cut.
I am using this code to print it and also use the landscape mode to true i search in google.
…

Kimberypalet
- 119
- 10
0
votes
1 answer
Couldn’t open PDF. Something’s keeping this PDF from opening. With VB.NET PrintForm
I am trying to print Form using PrintForm in VB.Net
This Form has few labels and a chart control.
I have used this very simple code
Dim pf As New PrintForm
pf.Form = Me
pf.PrintAction = PrintAction.PrintToFile
pf.PrintFileName =…

sam
- 85
- 9
0
votes
2 answers
VB.net Printform cant find path
So I am working on a form which need to be printed. I want to end up with a PDF file using Foxit PDF printer. The problem is that I cant figure out how to get the selected path as file location so I keep getting an the Path cannot be null.
error.…

Fyer-Zero
- 123
- 2
- 11