I am using the wptools report builder component to render html in a report.
However, when pictures are embedded in the html, the system freezes while rendering it.
if pictures are removed, there is no freeze.
using delphi 2010 and wptools 7.28
any ideas that I can use to fix this?
Beiträge von ccmcbride
-
-
I am finding out that when I press return, using html mode for the editor, a 'div' gets input, vs a 'br'.
Is there a way to change that? -
when adding the breakpoint, it's skipped because it's not passing the bmp format check.
This condition :Codeelse if not(wpcoDontPasteGraphics in FClipboardOptions) and (not load and (ClipBoard.HasFormat(CF_METAFILEPICT) or ClipBoard.HasFormat(CF_ENHMETAFILE) or ClipBoard.HasFormat(CF_BITMAP) or ClipBoard.HasFormat(CF_PICTURE))) then
is returning false.
As for how it's being copied, sometimes it from windows snipping tools, sometimes, it's doing a copy/paste from a file on the system. -
More info:
I cannot PASTE a jpg or png image,
however, I CAN drag and drop it.
So, the question is, why can I not PASTE it?
What option/compiler flag could I be missing (if any?) -
Using WpTools 7.20, Delphi 2010.
I know I *used* to be able top copy/paste .png and .jpg images, but I no longer seem to be able to do that.
I HAVE pngimage enabled in wpinc.inc and graphicEx undefined.
.bmp files are working just fine.any idea what I am missing?
-
emailed a test project to support
-
I have logic where I am trying to merge html from one source into a memo which contains HTML text:
Codeprocedure tdmSME.MergeHTML(theEdit : twpCustomRTFEdit; theString : string); var x : integer; begin x := theEdit.CPPosition; theEdit.SelectionAsString := theString; theEdit.CPPosition := x; theEdit.InputSection([wpsec_ResetOutlineNums,wpsec_ResetPageNumber]); // theEdit.ReformatAll(true, true); end;
but it's not showing in my screen.
note : theString starts and ends with the <html></html> tags.
any help? -
thank you, that worked
-
almost right.
it's putting the cursor down to the next line, but I need the cursor at the end of the inserted line.
is that possible?
(and does it matter that I'm using html instead of rtf?) -
That's what I though, but it isn't working:
CodemNotes.AsString := ds.FieldByName(aFieldName).AsString; aLine := #13 + #10 + ansiDateTimeToStr(now, false) +' '+ dmMain.tblUserNAME.AsString + ': '; mNotes.CPPosition := 0; mNotes.InputString(aLine);
but the new line keeps getting added to the end.
[/img] -
I need to go to the first line of the document and insert a line of text, using tWPRichText component. Can you tell me how I can do that?