BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is it even possible? Mail/Labels/Vouchers

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports)
View previous topic :: View next topic  
Author Message
Steven Nicholas
Guest





PostPosted: Sat Mar 26, 2005 2:03 pm    Post subject: Is it even possible? Mail/Labels/Vouchers Reply with quote



Hi,

i have a problem, as do a few others all over the web with trying to get
RAVE to print labels/mail addresses/vouchers/invoices.
Anything that requires data to be printed across the page in columns as well
as rows for each data record.
I have searched through all the tutorials i could find, but it isn't
mentioned anywhere how to do this.

Has anyone been able to do this successfully, or will i have to do all the
logic in my application?
I'm using Delphi 7 RAVEBE 5.0.8.

Thanks in advance.
Steven


Back to top
Al Herman
Guest





PostPosted: Sun Mar 27, 2005 3:09 am    Post subject: Re: Is it even possible? Mail/Labels/Vouchers Reply with quote



Yes I've done it where you can print on any type of label with or without
barcodes. Used code based works very well
"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote

Quote:
Hi,

i have a problem, as do a few others all over the web with trying to get
RAVE to print labels/mail addresses/vouchers/invoices.
Anything that requires data to be printed across the page in columns as
well
as rows for each data record.
I have searched through all the tutorials i could find, but it isn't
mentioned anywhere how to do this.

Has anyone been able to do this successfully, or will i have to do all the
logic in my application?
I'm using Delphi 7 RAVEBE 5.0.8.

Thanks in advance.
Steven





Back to top
Steven Nicholas
Guest





PostPosted: Sun Mar 27, 2005 3:34 pm    Post subject: Re: Is it even possible? Mail/Labels/Vouchers Reply with quote



Hi,

i found the column setting which will allow me to set up the required number
of columns in a databand. I've set up the mirrors for the Data Mirror Sets,
but now i am stuck again.

Basically there is some decryption that i need to do before i insert the my
data into the report so i can't run the report with a connection to a
database.

I've put a RvProject on my form, designed the form and put the text labels
and datataext fields onto the form etc.
Now how do i get to insert my data into this field? If i loop through my
data and insert, then call the execute function, i get one record per page
instead of multiple pages. How do i send all my data to the pages before
calling execute?

This is a major problem as per usual, i've left the reporting to the last
minute and my dealine for the reporting is fast approaching.

Hope someone can either help me, or tell me it's not possible with this
product so that i can look elsewhere.

Thanks
Steven

"Al Herman" <aherman (AT) chasemckay (DOT) com> wrote

Quote:
Yes I've done it where you can print on any type of label with or without
barcodes. Used code based works very well
"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote in message
news:42456bae (AT) newsgroups (DOT) borland.com...
Hi,

i have a problem, as do a few others all over the web with trying to get
RAVE to print labels/mail addresses/vouchers/invoices.
Anything that requires data to be printed across the page in columns as
well
as rows for each data record.
I have searched through all the tutorials i could find, but it isn't
mentioned anywhere how to do this.

Has anyone been able to do this successfully, or will i have to do all
the
logic in my application?
I'm using Delphi 7 RAVEBE 5.0.8.

Thanks in advance.
Steven







Back to top
Al Herman
Guest





PostPosted: Sun Mar 27, 2005 4:35 pm    Post subject: Re: Is it even possible? Mail/Labels/Vouchers Reply with quote

Here is the code, I'm giving back to the groups that always helped me out

procedure TfrmPrintLbls.CustLblsPrint(Sender: TObject);
var
X, Y, LblCount : Double;
RowCount : Integer;
UPCBarCode: TRPBarsUPC;
begin
with sender as TBaseReport do
begin
tblCust_.First;
RowCount := 1;
Count := Length(tblSetupLbl_CFont.Value);
CFontSz := StrToInt(Copy(tblSetupLbl_CFont.Value, (Count - 1), Count));
CFont := Copy(tblSetupLbl_CFont.Value, 0, (Count - 4));
SetFont(CFont, + CFontSz);
Screen.Cursor := crHourglass;
If tblSetupLbl_CAddr1.AsBoolean then Inc(RowCount); //used to know
number of rows to be printed
If tblSetupLbl_CAddr2.AsBoolean then Inc(RowCount);
If tblSetupLbl_CCity.AsBoolean then Inc(RowCount);
If tblSetupLbl_CZip.AsBoolean then Inc(RowCount);
If tblSetupLbl_CBarcode.AsBoolean then Inc(RowCount);
Y := tblSetupLbl_CVert.Value + tblSetupLbl_CTop.Value;
X := tblSetupLbl_CLeft.Value;
LblCount := 0;
while not tblCust_.Eof do
begin
GotoXY(X, Y);
Print(tblCust_Company.Value);
Y := (Y + tblSetupLbl_CVert.Value);
GotoXY(X, Y);
If tblSetupLbl_CAddr1.AsBoolean then
begin
Print(tblCust_Addr1.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CAddr2.AsBoolean then
begin
Print(tblCust_Addr2.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CCity.AsBoolean then
begin
Print(tblCust_City.Value + ', ' + tblCust_State.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CZip.AsBoolean then
begin
Print(tblCust_Zip.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CBarcode.AsBoolean then
begin
UPCBarCode := TRPBarsUPC.Create(Sender as TBaseReport);
with UPCBarCode do
begin
BarHeight := 6.00;
BarTop := (Y - tblSetupLbl_CVert.Value);
BarWidth := 0.25;
WideFactor := 3.00;
UseChecksum := True;
PrintReadable := True;
Text := tblCust_Phone.AsString;
Center := X + 10;
end;
UPCBarCode.Print;
UPCBarCode.Free;
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
LblCount := (LblCount + 1);
X := (X + tblSetupLbl_CHoriz.Value);
Y := (Y - (RowCount * tblSetupLbl_CVert.Value));
tblCust_.Next;
If (X >= (tblSetupLbl_CLblsRow.Value * tblSetupLbl_CHoriz.Value)) then
begin
Y := Y + (RowCount * tblSetupLbl_CVert.Value); // resets back to left
side and spaces down for next row
X := tblSetupLbl_CLeft.Value;

If (LblCount >= tblSetupLbl_CLblsPage.Value) then
begin
newpage; //new page and resets back to top defaults for this page
Y := tblSetupLbl_CVert.Value + tblSetupLbl_CTop.Value;
X := tblSetupLbl_CLeft.Value;
LblCount := 0;
end;
end;
end;
Screen.Cursor := crDefault;
end;
end;




"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote

Quote:
Hi,

i found the column setting which will allow me to set up the required
number
of columns in a databand. I've set up the mirrors for the Data Mirror
Sets,
but now i am stuck again.

Basically there is some decryption that i need to do before i insert the
my
data into the report so i can't run the report with a connection to a
database.

I've put a RvProject on my form, designed the form and put the text labels
and datataext fields onto the form etc.
Now how do i get to insert my data into this field? If i loop through my
data and insert, then call the execute function, i get one record per page
instead of multiple pages. How do i send all my data to the pages before
calling execute?

This is a major problem as per usual, i've left the reporting to the last
minute and my dealine for the reporting is fast approaching.

Hope someone can either help me, or tell me it's not possible with this
product so that i can look elsewhere.

Thanks
Steven

"Al Herman" <aherman (AT) chasemckay (DOT) com> wrote in message
news:4246247c (AT) newsgroups (DOT) borland.com...
Yes I've done it where you can print on any type of label with or
without
barcodes. Used code based works very well
"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote in message
news:42456bae (AT) newsgroups (DOT) borland.com...
Hi,

i have a problem, as do a few others all over the web with trying to
get
RAVE to print labels/mail addresses/vouchers/invoices.
Anything that requires data to be printed across the page in columns
as
well
as rows for each data record.
I have searched through all the tutorials i could find, but it isn't
mentioned anywhere how to do this.

Has anyone been able to do this successfully, or will i have to do all
the
logic in my application?
I'm using Delphi 7 RAVEBE 5.0.8.

Thanks in advance.
Steven









Back to top
Steven Nicholas
Guest





PostPosted: Mon Mar 28, 2005 11:07 am    Post subject: Re: Is it even possible? Mail/Labels/Vouchers Reply with quote

Thanks Al,

i'll try that code out. I was hoping to get around doing it manually by
referencing the variables i had setup in the actual regions, but i guess
that won't be possible.

Thanks again for the help.

Steven

"Al Herman" <aherman (AT) chasemckay (DOT) com> wrote

Quote:
Here is the code, I'm giving back to the groups that always helped me out

procedure TfrmPrintLbls.CustLblsPrint(Sender: TObject);
var
X, Y, LblCount : Double;
RowCount : Integer;
UPCBarCode: TRPBarsUPC;
begin
with sender as TBaseReport do
begin
tblCust_.First;
RowCount := 1;
Count := Length(tblSetupLbl_CFont.Value);
CFontSz := StrToInt(Copy(tblSetupLbl_CFont.Value, (Count - 1), Count));
CFont := Copy(tblSetupLbl_CFont.Value, 0, (Count - 4));
SetFont(CFont, + CFontSz);
Screen.Cursor := crHourglass;
If tblSetupLbl_CAddr1.AsBoolean then Inc(RowCount); //used to know
number of rows to be printed
If tblSetupLbl_CAddr2.AsBoolean then Inc(RowCount);
If tblSetupLbl_CCity.AsBoolean then Inc(RowCount);
If tblSetupLbl_CZip.AsBoolean then Inc(RowCount);
If tblSetupLbl_CBarcode.AsBoolean then Inc(RowCount);
Y := tblSetupLbl_CVert.Value + tblSetupLbl_CTop.Value;
X := tblSetupLbl_CLeft.Value;
LblCount := 0;
while not tblCust_.Eof do
begin
GotoXY(X, Y);
Print(tblCust_Company.Value);
Y := (Y + tblSetupLbl_CVert.Value);
GotoXY(X, Y);
If tblSetupLbl_CAddr1.AsBoolean then
begin
Print(tblCust_Addr1.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CAddr2.AsBoolean then
begin
Print(tblCust_Addr2.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CCity.AsBoolean then
begin
Print(tblCust_City.Value + ', ' + tblCust_State.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CZip.AsBoolean then
begin
Print(tblCust_Zip.Value);
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
If tblSetupLbl_CBarcode.AsBoolean then
begin
UPCBarCode := TRPBarsUPC.Create(Sender as TBaseReport);
with UPCBarCode do
begin
BarHeight := 6.00;
BarTop := (Y - tblSetupLbl_CVert.Value);
BarWidth := 0.25;
WideFactor := 3.00;
UseChecksum := True;
PrintReadable := True;
Text := tblCust_Phone.AsString;
Center := X + 10;
end;
UPCBarCode.Print;
UPCBarCode.Free;
Y := (Y + tblSetupLbl_CVert.Value);
end;
GotoXY(X, Y);
LblCount := (LblCount + 1);
X := (X + tblSetupLbl_CHoriz.Value);
Y := (Y - (RowCount * tblSetupLbl_CVert.Value));
tblCust_.Next;
If (X >= (tblSetupLbl_CLblsRow.Value * tblSetupLbl_CHoriz.Value)) then
begin
Y := Y + (RowCount * tblSetupLbl_CVert.Value); // resets back to
left
side and spaces down for next row
X := tblSetupLbl_CLeft.Value;

If (LblCount >= tblSetupLbl_CLblsPage.Value) then
begin
newpage; //new page and resets back to top defaults for this page
Y := tblSetupLbl_CVert.Value + tblSetupLbl_CTop.Value;
X := tblSetupLbl_CLeft.Value;
LblCount := 0;
end;
end;
end;
Screen.Cursor := crDefault;
end;
end;




"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote in message
news:4246d2a2 (AT) newsgroups (DOT) borland.com...
Hi,

i found the column setting which will allow me to set up the required
number
of columns in a databand. I've set up the mirrors for the Data Mirror
Sets,
but now i am stuck again.

Basically there is some decryption that i need to do before i insert the
my
data into the report so i can't run the report with a connection to a
database.

I've put a RvProject on my form, designed the form and put the text
labels
and datataext fields onto the form etc.
Now how do i get to insert my data into this field? If i loop through my
data and insert, then call the execute function, i get one record per
page
instead of multiple pages. How do i send all my data to the pages before
calling execute?

This is a major problem as per usual, i've left the reporting to the
last
minute and my dealine for the reporting is fast approaching.

Hope someone can either help me, or tell me it's not possible with this
product so that i can look elsewhere.

Thanks
Steven

"Al Herman" <aherman (AT) chasemckay (DOT) com> wrote in message
news:4246247c (AT) newsgroups (DOT) borland.com...
Yes I've done it where you can print on any type of label with or
without
barcodes. Used code based works very well
"Steven Nicholas" <stevenn (AT) icon (DOT) co.za> wrote in message
news:42456bae (AT) newsgroups (DOT) borland.com...
Hi,

i have a problem, as do a few others all over the web with trying to
get
RAVE to print labels/mail addresses/vouchers/invoices.
Anything that requires data to be printed across the page in columns
as
well
as rows for each data record.
I have searched through all the tutorials i could find, but it isn't
mentioned anywhere how to do this.

Has anyone been able to do this successfully, or will i have to do
all
the
logic in my application?
I'm using Delphi 7 RAVEBE 5.0.8.

Thanks in advance.
Steven











Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.