mindlessmalk
New member
- Local time
- Yesterday, 22:54
- Joined
- Mar 30, 2009
- Messages
- 4
I use a 3rd party bar code creation application by Seagull scientific called BarTender 7.0.
I am using windows XP Pro SP2 with Access 2003.
I am using BarTender as an early-bound reference to print formatted bar code labels from my database.
However a few computers do not have the Bartender program installed, and therefor they get the "Missing or broken reference file." error. The error is not associated with a number, so i am not sure how to "catch" it and handle it internally by disabling the bar code feature of the application.
From what I have researched it sounds like I need to late bind BarTender using a similar method to the way you would late-bind other Office applications. I cannot get it to work right.
Here is the original code to print a bar code using the early-bound application:
The examples of late binding I have found look like this:
So I just replaced Excel with Bartender and got code like this:
I think my issue comes from this line in the original (early bound) code:
If I change this variable to an object (as I did with the application variable) then I get an error when this variable is assigned a value using the code:
That is where I get the error: "449- Argument not optional"
So I need a way to completely late bind this bartender application so that i can disable bar code functions if a computer does not have the BarTender application installed.
I have been struggling with this issue all week long and I have contacted the Seagull Support people (who were no help at all) I also have an active thread on this topic over here at UtterAccess.
Any ideas? Open to any suggestions.
Thanks!
Nate
I am using windows XP Pro SP2 with Access 2003.
I am using BarTender as an early-bound reference to print formatted bar code labels from my database.
However a few computers do not have the Bartender program installed, and therefor they get the "Missing or broken reference file." error. The error is not associated with a number, so i am not sure how to "catch" it and handle it internally by disabling the bar code feature of the application.
From what I have researched it sounds like I need to late bind BarTender using a similar method to the way you would late-bind other Office applications. I cannot get it to work right.
Here is the original code to print a bar code using the early-bound application:
Code:
Dim objBT As BarTender.Application
Dim objBTFormat As BarTender.Format
Set objBT = CreateObject("Bartender.Application")
Set objBTFormat = objBT .Formats.Open("\\NetworkLocation\OfBarcodeFormatFile\SimpleBarcode.btw")
objBTFormat .SetNamedSubStringValue "HeaderLabel", Barcode
objBTFormat .IdenticalCopiesOfLabel = NumBarcodes
objBTFormat .PrintOut
objBT .Quit
Code:
Dim objXL As Object
Set objXL = CreateObject("Excel.Application")
Code:
Dim objBT As Object
Dim objBTFormat as Object
Set objBT = CreateObject("Bartender.Application")
Set objBTFormat = objBT.Formats.Open("\\NetworkLocation\OfBarcodeFormatFile\SimpleBarcode.btw")
Code:
Dim objBTFormat As BarTender.Format
Code:
Set objBTFormat = objBT.Formats.Open("\\NetworkLocation\OfBarcodeFormatFile\SimpleBarcode.btw")
So I need a way to completely late bind this bartender application so that i can disable bar code functions if a computer does not have the BarTender application installed.
I have been struggling with this issue all week long and I have contacted the Seagull Support people (who were no help at all) I also have an active thread on this topic over here at UtterAccess.
Any ideas? Open to any suggestions.
Thanks!
Nate