Beiträge von ludopika

    Hi,

    I want to save my document in html format. It's not the problem.
    My pb is that the conversion omit to specify '&nbsp' in all the lines.

    For example the line :

    Zitat

    Hello world
    I want to kiss you

    In html format i want to have :

    Zitat

    Hello world
           I want to kiss you

    My problem that the ' ' doesn't appear in the html file.

    I research in the unit WPIOHTML where i can intercept my problem but i don't know where it is.

    Perhaps there is an option in htmloptions i have omit.

    Julian help me please.
    Thanks a lot

    I have find a solution with my code :

    imagetmp:=Tbitmap.Create;
    imagetmp.LoadFromFile('c:\thumb'+inttostr(strtoint(label16.caption)-1)+'.bmp');
    wpobj := TWPOImage.createimage(WPrichtext2.Memo.RTFData,imagetmp);
    obj := TWPTextObj.create;
    wprichtext2.CPPage:=strtoint(label16.caption)-1;
    cell:=wprichtext2.FastInputParagraph;
    cell.insert(0,obj);
    obj.ObjRef:=wpobj;
    obj.Width:=wpobj.ContentsWidth;
    obj.Height:=wpobj.contentsheight;
    imagetmp.Free;
    wprichtext2.ReformatAll(true,true);
    WPRichText2.Repaint;
    wprichtext2.cppage:=strtoint(label16.caption)-1;
    wprichtext2.FastDeleteParagraph;
    wprichtext2.ReformatAll(true,true);
    WPRichText2.Repaint;

    A second question please :
    How i delete the first page of my document ?

    Hi Julian,

    I explain what i want to do :
    All the page contains an image ( one image for one page ). When the person click on a page i want to replace the image.

    The problem is that i don't refind the object i was create to change the image, it's why i delete the page and insert a new page to replace this one.

    I don't know how i do ....

    hi,

    I have a wprichtext with layout = wpThumbNailView.
    My document have many page in the wprichtext. When i click in a page of the wprichtext I execute the line :

    imagetmp:=Tbitmap.Create;
    imagetmp.LoadFromFile('c:\thumb'+label16.caption+'.bmp');
    wprichtext2.PageNumber:=pageclick; //pageclick is the page where I click
    wprichtext2.FastDeleteParagraph;
    wpobj := TWPOImage.createimageWPrichtext2.Memo.RTFData,imagetmp);
    obj := TWPTextObj.create;
    wprichtext2.PageNumber:=pageclick-1;
    cell:=wprichtext2.FastappendParagraph;
    cell.insert(0,obj);
    obj.ObjRef:=wpobj;
    obj.Width:=wpobj.ContentsWidth;
    obj.Height:=wpobj.contentsheight;
    imagetmp.Free;
    WPRichText2.ReformatAll;
    WPRichText2.Repaint;


    My probleme that is the delete and the append.
    I delete the last paragraph all the time but the variable 'pageclick' contain a number not equal at last page.
    And the append is all the time in the last page.

    Please help me julian, I don't know....
    I have read the help file and i have try many posibilities but nothing....

    Hi,

    I have WPTOOLS 5 ( i do the upgrate of the WPTOOLS 4 ).

    In wptools 4 i insert graph text in a document RTF. I transform the document in HTML file and i mail with a smtp server. In wptools 4 when the composant save, i have the line :
    <IMG SRC='C:\temp\pic.bmp'...>

    I transfer the picture pic.bmp in my server and the line was transform for the link http :
    <IMG SRC='http://i-tecks.com......>

    And finally i mail the html file with my smtp server.

    BUT I HAVE A VERY BIG PROBLEM

    When i update the wptools 4 in wptools 5, the document save do not write the line <IMG SRC......> in my html file.

    I don't know how i do ? Please help me !!! I have updated but my program do not work and my boss is green ( he buy the update but the program don't work).

    Please Julian Help me.

    Thanks a lot....

    Hi,

    In WPtools 4 i have a document with text and picture. I save it into html format. I have my text and picture but with the WPTools 5 i don't have the picture.
    How do i save my document in html for having text and picture ?
    I need a html file to mail.

    Thanks

    Ludovic.

    Hi,

    I have a little problem but i don't know how i do to do this. I want to insert a new page. In wptools 4 i have code line :
    'WPRichtext1.inputstring(#12);'

    But i don't find how i do this with the WPtools 5.

    Thanks.

    Hi, ( excuse me for the language but i am french and my english is bad)

    I have an object wprichtext1. I insert picture with the action AInsertEmbeddedGraphicExecute. It 's right.

    When i save the wprichtext1 in a file with HMTL format all is correct except the picture. The picture doesn't have the coordonate and it's in a different position.

    I have 2 solutions :
    - The conversion of the HTML set the coordonate of the picture.
    - Or I modify the HTML code for integrate a layer for set the coordonate of the picture.

    How i do to have the coordonate of the picture in the Wprichtext1. I want to make a layer in the HTML code.

    Thanks
    Ludovic

    I use the function paintto, it's work. But the picture have a lot of pixel and the result is not very good for me because i have bar code and the picture transform the cod ( it's not the same in the end ).

    How i do with the onprintcanvas, i don't know.

    Hello,
    I have a wprichtext in a form. I want to copy the text with different font and size to a picture. I don't know how i do.
    I have in my picture the text with no style ( font, size ) when i do this with the clipboard.
    I use the Tmemorystream but no result.

    I don't know how i do, please help me.