OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2005, 09:25
b_repplinger
Guest
 
Posts: n/a
Question Create Barcode from VBA

dear all,

I'd like to create an application where a user opens a form with a textfield. He should be able to enter a number in to this field, the by pressing a commandbutten a vba script should convert this number to a barcode in insert it
into a new sheet.
Does anybodt has an idea, example or tutorioal how to do it?

Thank you in advance

Bernd
Reply With Quote
  #2  
Old 05-10-2005, 12:48
petig
Guest
 
Posts: n/a
Default

Hm. Did you try the Barcode wizard?
Reply With Quote
  #3  
Old 06-10-2005, 01:23
b_repplinger
Guest
 
Posts: n/a
Default create barcode from vba

which wizzard are you speaking about? I tried to record the actions of the barcode wizzard in CorelDraw. For the part when the barcode is created by the wizzard I get following message in the VBA recorder :' Recording of this command is not supported.
All other actions after the creation of the barcode are recorded correctlly.
But this doesn't help me to find the way how to write a vba script which can create the barcode.

best regards

Bernd
Reply With Quote
  #4  
Old 06-10-2005, 18:17
petig
Guest
 
Posts: n/a
Default

I thought that wizard in Draw. In VBA is not such wizard. Just didn't understand, why a plus frontend for that wizard. It has a textbox to get textinput, and after that generates a barcode, what you can take anywhere you want. So, I don't understand the problem. Exuse me.
If I'm well, the barcode wizard not usable through VBA automation.
Reply With Quote
  #5  
Old 07-10-2005, 02:10
b_repplinger
Guest
 
Posts: n/a
Default

The problem is that I have to print 20000 CD labels with an ongoing number. On each label of a CD I have to print the barcode with the same number 12 times arount the outer edge of the CD. Every barcode has to rotate 30 degrees so that with 12 barcodes around the outer edge I will get a circle. I couldn't find any other programm which can turn the barcodes in 30 degree steps. 90 180 and 270 degrees is no problem for all the other programms.
So in short words: on CD No one I have to print 12 times 00001, on CD number 2 12 times 00002 ...... As I don't want to change the number on the CD Label 20000 times manually I wanted to write a script in VBA.
Thats the reason for VBA

anyhow thank you for your answers

best regards

Bernd
Reply With Quote
  #6  
Old 07-10-2005, 08:53
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

These two threads might help you a bit in this:

http://forum.oberonplace.com/showthread.php?t=203
http://forum.oberonplace.com/showthread.php?t=590

Basically the idea boils down to insert Barcode OLE object and then use SendKeys VBA command to type some data in the dialog, close the dialog and move on to another barcode.

I hope this helps.
Reply With Quote
  #7  
Old 09-10-2005, 17:44
Webster
Guest
 
Posts: n/a
Default

Eh eh, that old one - bit rough and ready that one!

I'm still using this with great success in Corel 10. Saves heaps of time.

If the original poster would like more detail and the Forms and code for the UI I'm happy to help.

But they may be able to glean the method I used to generate the barcodes from this link.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting barcode from VBA module. igo CorelDRAW/Corel DESIGNER VBA 2 14-04-2009 08:34
Can I create CustomShape with VBA for CD? Can I create tool? Jab CorelDRAW/Corel DESIGNER VBA 0 01-02-2005 05:02
Convert barcode to curves pp21 New product ideas 1 10-03-2004 22:56
Create text in PP with VBA adriano Corel Photo-Paint VBA 1 07-01-2003 17:09
Detect if VBA is installed (an answer and a question) reanan CorelDRAW/Corel DESIGNER VBA 3 04-12-2002 14:35


All times are GMT -5. The time now is 02:17.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com