Results 1 to 3 of 3

Thread: [RESOLVED] Print new page

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Print new page

    I would like to know, How I can print the picture and put the picture in a new page after print the contents in the listview?
    Code:
    For i = 1 To ListView1(0).ListItems.Count
    Printer.Print Tab(5); ListView1(0).ListItems(i); _
                          Tab(25); ListView1(0).ListItems(i).ListSubItems(1); _
                          Tab(45); ListView1(0).ListItems(i).ListSubItems(2); _
                          Tab(65); ListView1(0).ListItems(i).ListSubItems(3); _
                          Tab(85); ListView1(0).ListItems(i).ListSubItems(4); _
                          Tab(105); ListView1(0).ListItems(i).ListSubItems(5); _
                          Tab(125); ListView1(0).ListItems(i).ListSubItems(6); _
                          Tab(145); ListView1(0).ListItems(i).ListSubItems(7)
    
    Next
    
    Printer.Print "Legend": ForeColor = vbBlack
    Set Picture2 = LoadPicture(App.path & "\output.bmp")
    Printer.PaintPicture Picture2, 60, 13000, 2000, 800
    
    Printer.EndDoc

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Question Re: Print new page

    Could somebody help me.. How I can put the picture to be display in a a new page? It suppose appear 30 records to be print out.. But it appear only 5-6 record because of the picture put in a same page.. How I can put the picture in a new page or put at last page? Please.. I really need help.. I cannot solve that problem
    Attached Images Attached Images  

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Print new page

    Printer.Print "Legend": ForeColor = vbBlack
    Set Picture2 = LoadPicture(App.path & "\output.bmp")
    Printer.NewPage
    Printer.PaintPicture Picture2, 60, 13000, 2000, 800

    Printer.EndDoc
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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