Parsing a Database field for special value
Parsing a Database field for special value
Hi,
is it possible to parse a string of a Databasefield for a special value like "[PB]" which causes to genereate a page break ?.
And then printing on next page till the next "[PB]" occurs.
We need that for a customer who has large desciption for Producs and want to be able to put a special Char or Word in that Text
so that when printing a page break occurs. This can be more than once.
Like this:
Page 1
blabla bla bla bla bla bla bla
blabla bla bla bla bla bla bla
blabla bla bla bla bla bla bla
[PB]
Page 2
blabla bla bla bla bla bla bla
[PB]
Page 3
blabla bla bla bla bla bla bla
..
...
The above Text "bla bla" etc. comes from a Databasefield like. Products.Description
Some kind of parsing the text while rendering is needed i guess.
Thx for your help
Stephan
is it possible to parse a string of a Databasefield for a special value like "[PB]" which causes to genereate a page break ?.
And then printing on next page till the next "[PB]" occurs.
We need that for a customer who has large desciption for Producs and want to be able to put a special Char or Word in that Text
so that when printing a page break occurs. This can be more than once.
Like this:
Page 1
blabla bla bla bla bla bla bla
blabla bla bla bla bla bla bla
blabla bla bla bla bla bla bla
[PB]
Page 2
blabla bla bla bla bla bla bla
[PB]
Page 3
blabla bla bla bla bla bla bla
..
...
The above Text "bla bla" etc. comes from a Databasefield like. Products.Description
Some kind of parsing the text while rendering is needed i guess.
Thx for your help
Stephan
Parsing a Database field for special value
Hi Stephan,
No problem, it is possible to parse.
Please create the function which can show only the part of the text between two adjacent [PB] symbols and the function for calculation of the necessary page breaks.
Then set CountData of the DataBand according to the number of pagebreaks. NewPageAfter property must be in true, CanBreak and CanGrow also must be in true for both DataBand and StiText.
This can be a Detail databand, so you can set CountData in the BeforePrint event of the Master databand too.
Thank you.
No problem, it is possible to parse.
Please create the function which can show only the part of the text between two adjacent [PB] symbols and the function for calculation of the necessary page breaks.
Then set CountData of the DataBand according to the number of pagebreaks. NewPageAfter property must be in true, CanBreak and CanGrow also must be in true for both DataBand and StiText.
This can be a Detail databand, so you can set CountData in the BeforePrint event of the Master databand too.
Thank you.
Parsing a Database field for special value
Thx Edward for your help,Edward wrote:Hi Stephan,
No problem, it is possible to parse.
Please create the function which can show only the part of the text between two adjacent [PB] symbols and the function for calculation of the necessary page breaks.
Then set CountData of the DataBand according to the number of pagebreaks. NewPageAfter property must be in true, CanBreak and CanGrow also must be in true for both DataBand and StiText.
This can be a Detail databand, so you can set CountData in the BeforePrint event of the Master databand too.
Thank you.
can you provide for this a samplereport with a filled Databasefield ?.
so i can migrate that to our needs ?.
Thx a lot
Stephan
Parsing a Database field for special value
Hello,
Please check Report Code, BeginRenderEvent of report and report variables.
Thank you.
Please check Report Code, BeginRenderEvent of report and report variables.
Thank you.
- Attachments
-
- 189.SampleReport.mrt
- (15.49 KiB) Downloaded 254 times
Parsing a Database field for special value
Thx for the report Jan,Jan wrote:Hello,
Please check Report Code, BeginRenderEvent of report and report variables.
Thank you.
but i can't get it work for our reports. We have a Databand with Childbands. And we need the Split in the ChildDataBand which has no Countdata.
Is it possible to send you the existing report and you can have a look if it's possible to use the technique you described ?.
Also i saw there is a rtf Component in the Toolbar of the reportdesigner.
Does this rtf-Component support the Pagebreak tag ? So we can use a rtf textfield ? or does this rtf-component only support. Font, Forecolor, Backcolor, italic, bold ?.
Thx again for you help so far
Stephan
Parsing a Database field for special value
Hello Stephan,
Thank you.
Please send your report to support@stimulsoft.com. Add url to this topic in your EMail.but i can't get it work for our reports. We have a Databand with Childbands. And we need the Split in the ChildDataBand which has no Countdata.
Is it possible to send you the existing report and you can have a look if it's possible to use the technique you described ?.
Rtf component support standard Rich Text. Also it support CanBreak property.Also i saw there is a rtf Component in the Toolbar of the reportdesigner.
Does this rtf-Component support the Pagebreak tag ? So we can use a rtf textfield ? or does this rtf-component only support. Font, Forecolor, Backcolor, italic, bold ?.
Thank you.
Parsing a Database field for special value
Ok i will send you the report,Jan wrote:Hello Stephan,
Please send your report to support@stimulsoft.com. Add url to this topic in your EMail.but i can't get it work for our reports. We have a Databand with Childbands. And we need the Split in the ChildDataBand which has no Countdata.
Is it possible to send you the existing report and you can have a look if it's possible to use the technique you described ?.
Rtf component support standard Rich Text. Also it support CanBreak property.Also i saw there is a rtf Component in the Toolbar of the reportdesigner.
Does this rtf-Component support the Pagebreak tag ? So we can use a rtf textfield ? or does this rtf-component only support. Font, Forecolor, Backcolor, italic, bold ?.
Thank you.
what format you need ? .mrt ? mdc ? or mrz ?
Also i tried using rtf component and setting a /page this doesn't work.
thx
Stephan
Parsing a Database field for special value
Hi
Please check the e-mail, as we have sent the answer to you.
Thank you.
Please check the e-mail, as we have sent the answer to you.
Thank you.
Parsing a Database field for special value
Hi Edward,Edward wrote:Hi
Please check the e-mail, as we have sent the answer to you.
Thank you.
thx for your reply.
But this doesn't fix our problem. Please see e-mail i sent you.
Thx
Stephan
Parsing a Database field for special value
Hi Edward,
thx for your reply.
Please Check mail i sent to the Ticket System.
I can't figure it out to work with our reports. Please take a look at the sample report i provided.
Thx
Stephan
thx for your reply.
Please Check mail i sent to the Ticket System.
I can't figure it out to work with our reports. Please take a look at the sample report i provided.
Thx
Stephan