trichview.com

trichview.support




Re: Paste bitmap at running time


Return to index


Author

Message

Patrick

Posted: 01/05/2004 13:42:06


Thank you very much Sergey, I have used "Load FromFile"

I save and the load and all is ok.

Thank you again

Patrick


"Sergey Tkachenko" <[email protected]> wrote:

>You cannot mix up editing-style methods like PasteBitmap and viewer-style

>methods like AddNL.

>Editing-style method require document to be formatted  before their calls,

>and leave the document formatted.

>Viewer-style method do not require formatted document, and leave it

>unformatted (until you call Format();).

>

>Is the document in RichViewEdit1 formatted before the call of PasteBitmap()

>

>>

>> Hello,

>> When I use the paste method when clicking a button all is ok.But now I

>would

>> insert a bitmap from clipboard at running time.

>> I have created a function and it copy a bitmap to the clipboard.I have

put

>> a breakpoint and looked with "Paint" the bitmap is ok. at the next code

>line

>> at the return of my function I paste it in a RichViewEdit and an error

>message

>> occurs with "index out of bound (-1)"

>> My code is:

>>

>> AnsiString Nom=AnsiString("Fonds propres nets");

>> int table=1;

>> CopieChartToClip(Nom,table);

>> RichViewEdit1->PasteBitmap(false);

>> RichViewEdit1->AddNL("Quelques explications",0,0);

>>

>> I know than paste is at the caret position but I have looked in the help

>> and found nothing about.

>> Could you help me please

>> I thank you in advance

>> Patrick

>

>





Powered by ABC Amber Outlook Express Converter