Solved

printing textboxes/lines and dir and file lists

Posted on 2000-04-28
4
156 Views
Last Modified: 2010-05-02
My text1 is a tekstblock how can i print that?
My dir1 is a dirbox how can i print that?
My file1 is a filelist how can i print that?
My text2 is a textline how can i print that?

Points are for the person who helps with all four questions.
0
Comment
Question by:markyvt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Author Comment

by:markyvt
ID: 2761641
PS i want to print on a printer not to a file !
0
 
LVL 1

Expert Comment

by:manchula
ID: 2761644
Hope this is what you expect.

    Print Text1.Text
    For i = 0 To Dir1.ListCount - 1
        Print Dir1.List(i)
    Next
    For i = 0 To File1.ListCount - 1
        Print File1.List(i)
    Next
    Print Text2.Text
0
 
LVL 1

Expert Comment

by:manchula
ID: 2761647
   Printer.Print Text1.Text
    For i = 0 To Dir1.ListCount - 1
        Printer.Print Dir1.List(i)
    Next
    For i = 0 To File1.ListCount - 1
        Printer.Print File1.List(i)
    Next
    Printer.Print Text2.Text
0
 
LVL 1

Accepted Solution

by:
manchula earned 25 total points
ID: 2761651
Use the Printer object to print.

    Printer.Print Text1.Text
    For i = 0 To Dir1.ListCount - 1
        Printer.Print Dir1.List(i)
    Next
    For i = 0 To File1.ListCount - 1
        Printer.Print File1.List(i)
    Next
    Printer.Print Text2.Text
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question