Solved

Print label from VBA to Avery 9100 label printer

Posted on 2004-10-20
9
346 Views
Last Modified: 2012-06-27
I have an Avery 9100 lable printer.  I can print to it by linking to a table with the data that is needed on the label then clicking the print icon on the avery tool bar.  I need to print to it using the on click event of a command button.  I have found some examples using labelpro but the printer came with designpro.
Has anyone done this?
0
Comment
Question by:DAPAA
[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
9 Comments
 
LVL 19

Expert Comment

by:david251
ID: 12358252
I have not used Avery before but if it is a standard toolbar you could try this code to simulate the button press
 
Sub subPressButton(strToolbarName As String, intToolbarButtonIndex As Integer)
    Application.CommandBars(strToolbarName).Controls(intToolbarButtonIndex).Execute
End Sub

This is the usage:
subPressButton "Database",2

remember to substitue your avery toolbar name and the button index

If you need more info let me know.

-David251
0
 

Author Comment

by:DAPAA
ID: 12362472
David,
Thanks for the suggestion but I want to create and send the label without using the avery toolbar.  The reasons for this is Avery, to my knowledge,  requires you link to the table each time a label is sent.  

I would be OK with an OCX or an API call but have been instructed to not use toolbar.

thanks for the reply,
Don
0
 
LVL 19

Expert Comment

by:david251
ID: 12362498
Have you tried using a mail merge file in word instead of Avery?

-David251
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:DAPAA
ID: 12364699
That is the example desing pro gives so i know it would work.  The issue with that is Access is the only product installed on the computers that will be running the application.

The client is OK with using a different low end label printer if you know of one that would print direct from VBA.

thanks again
0
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 12364858
I take it that the printer cannot handle standard documents being sent to it as if it was a normal printer? Most label printers I have seen can do this.
0
 

Author Comment

by:DAPAA
ID: 12484720
This question is being withdrawn.  the client is using a standard printer with flat label stock.  

Thanks for all who replied.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 13047242
DOH!  That's supposed to be PAQ/Refund.  
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 13071790
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

751 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