Results 1 to 4 of 4

Thread: HTML- Page break?

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550

    Question

    I would love to output my reports to HTML, but do any of you geniuses know if I can specify where page-breaks should be (so the mugs can print the stuff) and what orientation the paper should be too? (they'll all be using A4 so that's ok). Sorry it's not really a VB question, but it kind of is in a way. Or not.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    Use <br>
    Hope this helps

    Crazy D

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Try:

    Code:
    replace(YourReportText, vbNewLine, "<BR>")
    Then output it in the <BODY> tags of an HTML page. To retain formatting with spaces you might also want:

    Code:
    replace(YourReportText, " ", "&nbsp;")
    Since browsers will not recognise more than one space between characters.
    Harry.

    "From one thing, know ten thousand things."

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Lightbulb

    Also, take in account that Replace function is available in Visual Studio 6.0, since VBScript is based on the VB.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width