Search found 17 matches

by DelphiDude
Tue Jun 28, 2016 4:13 am
Forum: Support
Topic: Error when processing insertpicture.
Replies: 1
Views: 10694

Error when processing insertpicture.

here is my code for finding text and insertpicture, but i keep getting invalid pointer error. procedure TfrmHKLDocuments.SearchAndReplaceImage(InSearch: string; NewImage : TWICImage); var APos: Integer; begin _bitmap := TBitmap.Create; _bitmap.Assign(nil); _bitmap.Assign(NewImage); ResizeBitmap ...
by DelphiDude
Tue Jun 28, 2016 4:03 am
Forum: Support
Topic: Search and Replace text in Header
Replies: 2
Views: 12712

I have narrowed this down to just 1 document..

i have the searchandreplace routine to search headers and activeeditor in seperate search/inserttext statements. But for some reason this one document(RTF file) seems to throw an error with the header code. Could i send it to you or tell me a different way to searchandreplace that processes the text ...
by DelphiDude
Mon Jun 27, 2016 10:13 pm
Forum: Support
Topic: Search and Replace text in Header
Replies: 2
Views: 12712

Search and Replace text in Header

I have this code for replacing text in a header and then in the body. But now some of my RTF files throw an index(0) error when trying to process info in the header. begin rveDoc.RVHeader.SetSelectionBounds( 0, rveDoc.RVHeader.GetOffsBeforeItem(0), 0, rveDoc.RVHeader.GetOffsBeforeItem(0)); while ...
by DelphiDude
Mon Jun 27, 2016 3:01 am
Forum: Support
Topic: Replace text with an Image
Replies: 1
Views: 10117

Replace text with an Image

I have worked out the find text and replace, now i am looking to find text and replace with image.
Find <IMAGE_001> and replace it with a bitmap/jpeg image.
by DelphiDude
Sun Jun 26, 2016 10:21 pm
Forum: ScaleRichView
Topic: Search and Replace text in Header
Replies: 3
Views: 23220

Still not getting my header updated...

Here is my loading of the rtf file. rveDoc.Clear; rveDoc.ActiveEditor.LoadRTF(_rtfDirectory + cklstbxRTF.Items.Items[I].Text + '.rtf'); rveDoc.Format; rveDoc.Update; then after i get my data from the DB i call the search and replace routine. procedure TfrmHKLDocuments.SearchAndReplace(InSearch ...
by DelphiDude
Sun Jun 26, 2016 3:33 am
Forum: ScaleRichView
Topic: Search and Replace text in Header
Replies: 3
Views: 23220

Search and Replace text in Header

i have the srichview working with loading an rtf and the do a search and replace but how do i get it to search and replace info in the header. Just curious since the search and replace with the srichview needs to be done programmatically, is there a better/simpler way to search and replace all of a ...
by DelphiDude
Sat Jun 25, 2016 7:02 pm
Forum: Support
Topic: What component do i use to save an rtf/? wit headers/footers
Replies: 7
Views: 23808

OK after verifying that the sample demo worked

i started comparing differences.
SRichView.RTFOptions.rvrtfSaveHeaderFooter - True

Sorry to have taken up your time on such a stupid issue.
Thank you so much.
by DelphiDude
Sat Jun 25, 2016 6:03 pm
Forum: Support
Topic: What component do i use to save an rtf/? wit headers/footers
Replies: 7
Views: 23808

I tried using this sample program as well but it also didn't

save with headers in the doc file.
C:\VCL\TRichViewTrialDelphi\ScaleRichView\Demos\RVDemos\OfficeConverters

When I open the rtf file the headers show but when i save it (.doc) and open in WORD, no headers.
by DelphiDude
Sat Jun 25, 2016 5:58 pm
Forum: Support
Topic: What component do i use to save an rtf/? wit headers/footers
Replies: 7
Views: 23808

Using the example program for SRichView editor..

C:\VCL\TRichViewTrialDelphi\ScaleRichView\Demos\RVDemos\Assorted\Printing\Headers I modified the MainMenu to have a Save option and added this code to it. procedure TForm1.Save1Click(Sender: TObject); begin SRichViewEdit1.RichViewEdit.SaveRTF('t:\01.rtf',False); SRichViewEdit1.RichViewEdit.SaveDocX ...
by DelphiDude
Thu Jun 16, 2016 1:50 pm
Forum: Support
Topic: What component do i use to save an rtf/? wit headers/footers
Replies: 7
Views: 23808

No i have the tsrichview working like i want but

i have not been able to figure out how to save it to a file that can be opened by WORD and still have the headers/footers.
in my project the tsrichview looks perfect now i just need to save it so it can be emailed to another office/client to open in their WORD.
by DelphiDude
Wed Jun 15, 2016 7:47 pm
Forum: Support
Topic: What component do i use to save an rtf/? wit headers/footers
Replies: 7
Views: 23808

What component do i use to save an rtf/? wit headers/footers

into a file that can be read/edited/saved/printed in MS WORD?
TSRichView is where i am at now but i can seem to get the headers/footers to save into a file that when opened in WORD has all the info.
by DelphiDude
Mon Jun 13, 2016 5:16 pm
Forum: Support
Topic: headers and footers
Replies: 4
Views: 17488

...also some of the text to replace is in the header

Would have need to replace text in headers as well.
Prefer that the RTF change be hidden but doesn't have to be.
by DelphiDude
Mon Jun 13, 2016 5:04 pm
Forum: Support
Topic: headers and footers
Replies: 4
Views: 17488

in your opinion what would you suggest to accomplish this...

I have a client that has a bunch of RTF files, some with headers and footers. They want to be able to run my program to read these RTF files and replace select text within them, then save them back as RTF or DOC doesn't matter as long as the file can be opened in WORD. They are going to run my ...
by DelphiDude
Mon Jun 13, 2016 1:21 am
Forum: Support
Topic: headers and footers
Replies: 4
Views: 17488

...also how can i save headers and footers into 1 rtf file.

i have the savertf().. but how can i save to an rtf with headers and footers. the demo uses an rvprint but i don't want to print it i want to save it as an RTf file?
by DelphiDude
Mon Jun 13, 2016 1:04 am
Forum: Support
Topic: headers and footers
Replies: 4
Views: 17488

headers and footers

is the only way to produce headers and footers done like the demo project for printing headers. 7-richviewedits and 7 rvstyles.
can it be done with 1 richviewedit and 7 rvstyles?