Confirmation Letter Format

Stimulsoft Reports.NET discussion
Post Reply
Siang Hwee
Posts: 50
Joined: Mon Mar 26, 2007 6:32 pm
Location: Malaysia

Confirmation Letter Format

Post by Siang Hwee »

Hi. I am going to create a confirmation letter with the following format.
----------------------------------------------------------------------------------
Ref No: [Data Source]
Date: [Data Source]
Name: [Data Source]
Address: [Data Source]

Dear Sir/Madam,

Re:Appoinment As [data source]
========================
We are please to offer xxxxxxx
(Few Pages Long terms and conditions)

Name: [Data source]
Signature:
----------------------------------------------------------------------------------

The problem now is how to separate the long hard coded terms and condition into few pages.

Thanks for help


Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Confirmation Letter Format

Post by Edward »

If possible, then please place the following content:
(Few Pages Long terms and conditions)
into the separate DataBands and set for each of them StartNewPage property in true.

Thank you.
Siang Hwee
Posts: 50
Joined: Mon Mar 26, 2007 6:32 pm
Location: Malaysia

Confirmation Letter Format

Post by Siang Hwee »

Hi Edward,

The terms and conditions are all hard coded witout any databinding. My initial plan was allow user to download the template letter and modify the terms and conditions their own and then upload it later. It will tight to employee personal info and print according to the upload format.

Probably i still not get used to stimulReport yet, i try to put the terms and conditions in text control but find out the report form itself have no way for me to put longer content and split it up. Is there anyway to put the content in text and allow me to set can grow to few pages? could you please help on this issue? i can send you the template confirmation letter for your reference if you need it.

Thanks and appreciate your help
Edward wrote:If possible, then please place the following content:
(Few Pages Long terms and conditions)
into the separate DataBands and set for each of them StartNewPage property in true.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Confirmation Letter Format

Post by Edward »

Ok, if I understand your task now correctly, then please do the report template in the following way:

1. Place as much databands on one Page as number of separate pages in the resulted report.

2. All DataBands must have StartNewPage property is set in true.

3. Set CountData property of each DataBand in 1.

4. Set Page.LargeHeight = true.

5. CanGrow = true, CanBreak = true for the DataBands and for Stitexts as well.

If the desired result is still not available with this suggestion, please send the report template to support[at]stimulsoft.com for analysis.

Thank you.

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Confirmation Letter Format

Post by Edward »

Please see the attached report template. This report contains a method SplitMyText which is declared on the "Code Tab". This method just inserts after each tenth symbol of the string symbol of the "new line".

So each Text will contain exactly ten symbols per one StiText. Please note that all stiText in 'Wysiwyg' mode, because this method of rendering requires exact calculations of the height and width of the StiText component.

Thank you.
Attachments
36.Report_Template.mrt
(16.82 KiB) Downloaded 238 times
Siang Hwee
Posts: 50
Joined: Mon Mar 26, 2007 6:32 pm
Location: Malaysia

Confirmation Letter Format

Post by Siang Hwee »

Hi Edward,

Thanks for help. It works now.

Just for your information, when text size is too large in a single databind, the application just hang there and i don't know what really happen. Anyway, I separate the text into separate databand and it works perfectly.

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Confirmation Letter Format

Post by Edward »

Ok, thank you very much for the feedback.

It is a known behavior.

Our new version of the report engine allows us to prevent such issues. The new version of the report engine will be ready in a week and a half - two weeks period.

Thank you.
Post Reply