Solved

printing textboxes/lines and dir and file lists

Posted on 2000-04-28
4
150 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now