Solved

Print label from VBA to Avery 9100 label printer

Posted on 2004-10-20
9
350 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

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 51

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

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

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

634 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