Solved

Print label from VBA to Avery 9100 label printer

Posted on 2004-10-20
9
340 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
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
 

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
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…

747 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

10 Experts available now in Live!

Get 1:1 Help Now