Report Pagebreak

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

Is there a way in code when writing a web page in vb.net to tell it to
pagebreak if the table being written is going to be broken?
 
Hello,

scorpion53061 said:
Is there a way in code when writing a web page in
vb.net to tell it to pagebreak if the table being written
is going to be broken?

When printing?

Regards,
Herfried K. Wagner
 
What do you mean by "page break" in a web page ? Which HTML tag do you
expect to be generated in the HTML document ?
 
Hi Scorpion,
There are a lot of answer on this question from you Yesterday, please look
at that thread?
Or did you do this, because this is a nice non cross posting to this group
:-) ?
When you have still questions about it, message than again.
I will than try to look with you how it can be done using the styles.css in
the VB.net project that VB.net puts there by default.
Cor
 
This is a seperate issue from sorting the datatable.

Thank you for looking into this.
 
When going to print the web page I am trying to make sure tables do not get
broken when the page is printed. I am sorry I was not more clear.

For Each row In Dshistory1.Tables(0).Rows
i = i + 1
sw.WriteLine("<html>")
sw.WriteLine("<head>")
sw.WriteLine("</head>")
sw.WriteLine("<body>")
sw.WriteLine("<td width=33% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("CUSTNO") & "</td>")
sw.WriteLine("<td width=33% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("CUSTNAME") & "</td>")
sw.WriteLine("<td width=34% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("SLSMN") & "</td>")
sw.WriteLine("</body>")
sw.WriteLine("</html>")
Next

AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)
 
Scorpion
No you posted also about printing same question and first I did understand
it wrong.
It was a terrible crosspost.
But some people did give answers, so I think the best is look there first.
Cor
 
Back
Top