Results 1 to 3 of 3

Thread: newpage property does not work properly

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    jaipur, rajasthan, india
    Posts
    10

    Post

    Using Vsiual Basic 6.0
    Enterprise Edition

    Using printer.newpage in printing multiple pages does not work properly. It does not move on to new page. Only data from first page is printed.

    Even program available under VB Help fails to produce required result.

    Example :

    for i=1 to 5
    printer.print "sample output";i
    printer.newpage
    next i
    printer.enddoc

    The above lines expected to print five pages each with same message and changing number.

    whereas on executing this program VB prints only the first page, displaying message

    sample output 1

    Please suggest the solution to this



  2. #2
    Guest

    Post

    try using a "&" instead of the ";" in the message code.

    Code:
    Printer.print, "sample output " & i
    and dont forget the comma

    [This message has been edited by wossname (edited 01-01-2000).]

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Something else must be going on either with your program(s) or your printer, because the code you supplied will print 5 pages just as you think it should.

    ------------------
    Marty

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