allow user to make page header

Stimulsoft Reports.NET discussion
Post Reply
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

allow user to make page header

Post by dikan »

Hi,
i need help. I need to allow user to make his own page header. Idea was to give him one text field in header so that he can type what he needs in it. If i am using editable filed in page header every field is separate, so i can't type text into first page and expect other pages to get filled with text automatically (is there some option for that btw?). I tried to use richtextbox in form to fill text but when i use {RichTextBoxControl1.Text} i get something like this in result instead of text i typed into it:
"__LP___x005C_rtf1_x005C_ansi_x005C_ansicpg1250_x005C_deff0_x005C_deflang2074__LP___x005C_fonttbl__LP___x005C_f0_x005C_fnil_x005C_fcharset0_x0020_Microsoft_x0020_Sans_x0020_Serif_x003B___RP____LP___x005C_f1_x005C_fnil_x005C_fcharset238_x0020_Microsoft_x0020_Sans_x0020_Serif_x003B___RP____RP___x000D__x000A__x005C_viewkind4_x005C_uc1_x005C_pard_x005C_lang1033_x005C_f0_x005C_fs17_x0020_zasto_x0020_nece_x0020_normalno_x005C_lang2074_x005C_f1_x005C_par_x000D__x000A___RP___x000D__x000A_"
Is there any other solution to solve my task that i didn't think of? I thought rich text would be simplest one.
Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: allow user to make page header

Post by HighAley »

Hello.

As a way you could use a request from user variable. And fill the page header with its value.

Thank you.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: allow user to make page header

Post by dikan »

So..i can't use rich text?

And with user variable how can i make field in form big enough so user can type what he needs in it, text like this for example:
"company name ...empty space....some text i don't even want to know what is it
adress ...empty space.... more text
city ...empty space.... more text

then some text in 2-3 rows "
With format mask? If i declare variable as string i get only one line. If format mask is the solution what can i use to achieve this?

Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: allow user to make page header

Post by Alex K. »

Hello,

As a way, you can use the dialog forms for your task.
Please check the report in attachment.

Thank you.
Attachments
ReportArguments.mrt
(36.17 KiB) Downloaded 168 times
Post Reply