?
Solved

Bar code printing after fixed page

Posted on 2003-03-11
4
Medium Priority
?
176 Views
Last Modified: 2010-05-01
Hello there,

I have to write the small application where I need to print the bar codes after a fixed number of pages  
that displays section number etc on bar code.
I know how to print the bar codes with printform method.

My confusion is just how to count the number of pages??? e.g section 1 requires to print bar code after
every 267 pages, section 2 after 345 pages, etc.

Can anybody give me the idea??

Thanks in advance.
0
Comment
Question by:khatrij
[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
  • 3
4 Comments
 
LVL 4

Expert Comment

by:JRCSystems
ID: 8115449
How to count pages??

Either Use Printer.Page

or

Maintain your Own Variable

Dim miPageCount as Integer

or

Maintain an Array for Section Pages

Dim mvPages     as Variant

    mvPages = Array(0, 267, 345, 456, etc.)
0
 
LVL 1

Expert Comment

by:Cliven
ID: 8117348
Dim Page as long
Dim i as long

For i = 0 to 500
if i = 267 then
form1.barcode.
   form1.barcode.visible = true



next
0
 
LVL 1

Expert Comment

by:Cliven
ID: 8117355
Dim Page as long
Dim i as long

For i = 0 to 500
if i = 267 then
   form1.barcode.text ="xxxx"
   form1.barcode.visible = true
elseif i = 345 then
   form1.barcode.text ="yyyy"
   form1.barcode.visible = true
end if

next


now if will print the first barcode at 267 page and print second at 345 page

is that answer you want??
please explain the question detail
0
 
LVL 1

Accepted Solution

by:
Cliven earned 1000 total points
ID: 8117357
Dim Page as long
Dim i as long

For i = 0 to 500
if i = 267 then
   form1.barcode.text ="xxxx"
   form1.barcode.visible = true
elseif i = 345 then
   form1.barcode.text ="yyyy"
   form1.barcode.visible = true
end if

next


now it will print the first barcode at 267 page and print second at 345 page

is that answer you want??
please explain the question detail
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

764 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