![]() |
|
|||||||
| Reporting / Printing Discussion on output-creation components such as reporting, pdf, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I have been looking at some tutorials about using the print dialog, and I was able to print a text in a RichTextBox using the following code: Printing in VB .NET - Print Dialog, PrintPreview Dialog, PrintPreview Sample Code Control, PageSetup Dialog What I'm trying to do is print labels in my software, for exmaple Name: NickName: *Check Box1 *CheckBox2 so basically its a form and right now its working great, but 1 step is left is to make it print the label showing the checked chkBoxes and textboxes ..etc Any Idea or a good tutorial will help. Thanks bunch ! |
|
||||
|
Three options you can look into:
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
|
|||
|
Another option is downloading VB.net powerpacks, and using the printform() function in it (very helpful). What it does is, it just prints the entire form with everything on it. What you can do to get the results you want is for example
'Say you wanted to print a word where a label is Label1.text = "Blah" 'or Blah (where Blah is a saved string somewhere) 'Say you wanted to put the checkbox as checked, you just do this checkbox1.checked = true PrintForm() checkbox1.checked = false That way your checkbox is checked when you print, and unchecked when the printing is finished. Good luck, I hope that helped. Remember, Visual Basic .NET Powerpacks (3.0 or 2.0) |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|