Search found 49 matches

by elGringo
Thu Nov 30, 2017 10:35 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

also this variant

Code: Select all

HtmlViewer1.LoadFromString(AHtml);
    RVHTMLViewImporter1.AppendHtmlViewer(HtmlViewer1, SRichViewEdit1.ActiveEditor);
won't load pics as i understand?
by elGringo
Thu Nov 30, 2017 10:33 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

You are just brilliant !
used 3) and it worked an then used last advice of 2 strings without files and it also worked

but as for 3) not clear to me why when we change to TEncoding.Unicode it begins work? Because of initial text in UniCode?
by elGringo
Thu Nov 30, 2017 9:55 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

called like this

Code: Select all

  rv := TReportViewerForm.Create(Self);
  rv.LoadHTMLContent('<b>Русский текст</b>');
  rv.Show;
by elGringo
Thu Nov 30, 2017 9:52 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

result https://yadi.sk/i/OKUzGmEO3QBiUT in both cases Русский текст i just loaded... procedure TReportViewerForm.LoadHTMLContent(AHtml: string); var tempDir: string; randomFilePath: string; clientTempDir: string; i: Integer; begin try tempDir := ExtractFilePath(Application.ExeName) + 'fi...
by elGringo
Thu Nov 30, 2017 9:41 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

clipboard 'cause if not - it erases all content before
the same as in this topic
http://www.trichview.com/forums/viewtopic.php?t=7138

ok, i will make them visible and test
by elGringo
Thu Nov 30, 2017 9:24 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

or maybe srichview can change encoding after loading?
now a having
Интерпретация
by elGringo
Thu Nov 30, 2017 9:07 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

my full code to append html is procedure TReportViewerForm.AppendHTMLContent(AHtml: string); var tempDir: string; randomFilePath: string; clientTempDir: string; i: Integer; SRichViewEditTemp: TSRichViewEdit; begin try tempDir := ExtractFilePath(Application.ExeName) + 'files\temp'; TDirectory.CreateD...
by elGringo
Thu Nov 30, 2017 9:03 am
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

Now problem with russian text encoding (((
Somewhere in this chain i should point that i use utf-8 but where?

Regards,
by elGringo
Wed Nov 29, 2017 3:27 pm
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

final working decision is (concerning to this http://www.trichview.com/forums/viewtopic.php?t=7138) SRichViewEditTemp := TSRichViewEdit.Create(Self); try //copy content to another rve RVHTMLViewImporter.LoadFromFile(randomFilePath, SRichViewEditTemp.ActiveEditor); RVHTMLViewImporter.LoadFromClipboar...
by elGringo
Wed Nov 29, 2017 3:05 pm
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

Re: loading html to non-empty rve - possible?

Thank you very much!
by elGringo
Wed Nov 29, 2017 1:30 pm
Forum: Support
Topic: loading html to non-empty rve - possible?
Replies: 15
Views: 40115

loading html to non-empty rve - possible?

good time, Sergey! -dynamically composing my docs from different sources to rveMain 1-st loading from blob field 2-d loading html from other field and going to paste in to doc - for this going to create new rveAdditional- load html like this... ... RVAControlPanel.InitImportPictures(nil, nil); rve.O...
by elGringo
Sat Nov 25, 2017 8:50 pm
Forum: Support
Topic: Page breaks in HTML
Replies: 4
Views: 14874

Re: Page breaks in HTML

Sergey, thank you! I will try !
by elGringo
Sat Nov 25, 2017 2:43 pm
Forum: Support
Topic: Page breaks in HTML
Replies: 4
Views: 14874

Re: Page breaks in HTML

thank you, but how can i use THTMLViewer to import HTML to sRichView? Could you give a small piece of code?
Regards, Stanislav

I just need to show report created in SrichViewEdit with pages...
by elGringo
Sat Nov 25, 2017 9:59 am
Forum: Support
Topic: Page breaks in HTML
Replies: 4
Views: 14874

Page breaks in HTML

Hello, Sergey! Saving 2 pages to html, having following code below <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Style-Type&q...
by elGringo
Sun Aug 06, 2017 5:07 am
Forum: Support
Topic: copy/paste with tag, possible?
Replies: 1
Views: 8478

copy/paste with tag, possible?

if item has tag, when i copyPaste or cutPaste - pasted has no tag, possible to fix?