Visual Basic Development Bookmark and Share   
 Home > Visual Basic Power Packs > Printing reports
 

Printing reports

Im trying to print a part of the database. right now it end up like this


Titel
<table>
<tr>
<td colspan="2">Title
</td>
</tr>
<tr>data1<td></td><td>data2</td></tr>
<tr>data1<td></td><td>data2</td></tr>
</table>


<table>
<tr>
<td colspan="2">Title2
</td>
</tr>
<tr>data1<td></td><td>data2</td></tr>
<tr>data1<td></td><td>data2</td></tr>
</table>
means that the data line is longer, till a page
As you see its under each other.
I would like to have them beside each other. like five on a page and then the next five on the next page

I hope you know what i mean
  • Changed Typestimmyvz Thursday, November 12, 2009 11:32 PM
  •  
stimmyvz  Thursday, November 12, 2009 11:02 PM

Hi stimmyvz,

I think the above code is HTML, but i'm not sure i get your question, do you mean you want to print a table populated from database? How did you show the data?
However, here are some examples you can look into
1. Print entire scrollable form via PrintForm component
http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/fe6580a2-ea66-48c5-b9cd-da51bdeb801a
2.Print Form in high quality via PrintDocument
http://forums.msdn.microsoft.com/en-US/vbgeneral/thread/9e25f8a0-fcbc-4a8a-9134-55ad2b718887
3. Print Form using FormPrintHelperComponent component
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/6b9726f0-5d76-401d-9c13-1b6a0442d887
4. Print Datagridview
http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/a6927874-ad8a-4fd7-8619-7f395fe32644/

Hope this helps

Regards
Jeff Shan


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Jeff Shan  Monday, November 16, 2009 7:19 AM
Hey Jeff,

Im sorry for the late responce. Something important kept me from going online.
Thank you for your responce. I thought I was clear but i read it back and see that it can use some extra explanation.

Its html because its easy to show

I have a database. Lets say a table with tools. and another table with dates for using that tool and puting it back.
If I print this together, right now i get it all under each other. Like this

Tool1
date1out date1in
date2out date2in


Tool2
date1out date1in
date2out date2in

You get the idea. that is not realy practical. so what i would like is this

Tool1 Tool2 Tool3 Tool4 Tool5
date1out date1in date1out date1in date1out date1in date1out date1in date1out date1in
date2out date2in date2out date2in date2out date2in date2out date2in date2out date2in


So instead under each onther five beside eachother and than starting on the next page.

Hope this is more of an help


--- I wish I just knew the anwser, But now I know people can help me get smarter
stimmyvz  Monday, November 23, 2009 2:11 PM
Hi stimmyvz,

What tool did you use to show the data? Sorry, i can't see the relationship between this question and vb.net.
Would you please tell us what do you want to get fromvb.net?

Regards
Jeff Shan
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Jeff Shan  Wednesday, November 25, 2009 11:10 AM

You can use google to search for other answers

Custom Search

More Threads

• PowerPacks Version Problem
• Lines in Picture Box
• can't register Microsoft.InteropFormTools.dll
• Printer Compatability PowerPack with VB.NET 2003
• Visual Basic 6.0 Ethernet XML
• how it work of DataRepeater ?
• CAPICOM inserts \0 between every character
• VB .net 3.0 Print Form on 8.5 X 11 page
• VSTO
• Moving Line Control leaves behind black marks