| View previous topic :: View next topic |
| Author |
Message |
promoter Member
Joined: 30 Apr 2004 Posts: 2
|
Posted: 30/04/04 17:03 Post subject: Как работать с компонентом PrintPreview? |
|
|
Блин, русский кто то понимает?
Как работать с компонентом PrintPreview?
Стоит проблемма, как загрузить на форму PrintPreview
содержимое RxRichEdit? К примеру: - открыт текстовый документ
с набраным текстом и графикой. Я создал новую форму с именем
"Предварительный просмотр" на форму кинул компонент PrintPreview
теперь необходимо сделать так, что бы содержимое RxRichEdit
отобразилось на форме "Предварительный просмотр".
Если есть у кого нибудь пример(исходник) и не жалко скиньте
пожалуйста.
Заранее благодарен! |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 142
|
Posted: 04/05/04 05:44 Post subject: |
|
|
What language do you write?
About Question: What?? You want to combine RxRichEdit and TPrint Preview, i think that won't be a problem, just analize how TPrintPreview do it with normal rich edit, and simply addapt it to your needs |
|
| Back to top |
|
 |
promoter Member
Joined: 30 Apr 2004 Posts: 2
|
Posted: 04/05/04 09:11 Post subject: А теперь все это по русски ... |
|
|
| Johnny_Bit wrote: | What language do you write?
About Question: What?? You want to combine RxRichEdit and TPrint Preview, i think that won't be a problem, just analize how TPrintPreview do it with normal rich edit, and simply addapt it to your needs |
А теперь все это по русски ...
С английским языком проблемма . |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 366
|
Posted: 07/05/04 06:35 Post subject: |
|
|
| Johnny_Bit wrote: | What language do you write?
About Question: What?? You want to combine RxRichEdit and TPrint Preview, i think that won't be a problem, just analize how TPrintPreview do it with normal rich edit, and simply addapt it to your needs |
You should type cast RxRichEdit to TCustomRichEdit on passing it to appropriate TPrintPreview methods. |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 142
|
Posted: 10/05/04 09:38 Post subject: |
|
|
| god... i don't know what promoter wrote, but I smoehow feel, that Kambiz's answer is right. |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 366
|
Posted: 10/05/04 13:28 Post subject: |
|
|
| I thought that you have translated it! |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 142
|
Posted: 10/05/04 14:37 Post subject: |
|
|
eliminate non-latin characters, and there you go...
ps. Why not write support for Jedi VCL (it's such popular those days..., and also have rxlibrary in itself)
ps. smething tells me that launguage that those weird chars are written is armenian.. am i right? |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 366
|
Posted: 10/05/04 18:48 Post subject: |
|
|
The .NET provides us everything easier. So, I think there is no need to improve TPrintPreview or things similar to that.
By the way, the text should be in Cyrillic alphabet and probably in Russian. |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 142
|
Posted: 24/05/04 09:34 Post subject: |
|
|
ha! now i know what he asked... good for me i know russian...
i think that what Kambiz posted is right, but you can also extract PrintRichEdit method, and adjust it to RxRichEdit... |
|
| Back to top |
|
 |
|