Beiträge von didiergm
-
-
How would you go to implement an autosave feature which would save the document every x minutes.
Is it safe to save while the user is typing ? or is there any sort of 'idle' event which could be used to find when it is safe to save a document.
thanks for your ideas
Didier
-
Thank you Julian, this should give me a head start
Didier
-
I am still looking for an answer and would love to hear your ideas ...
Didier
-
Is it possible to set up an auto correct feature with WpSpell (or any other way). I mean auto correct of things like teh -> the or thnaks -> thanks
(I am using wptools 5 and wpspell on D2007)
Thanks
Didier -
Hello all,
my users are complaining that when the field delimiters are hidden before printing, they are not actually hidden but replaced by a space, so when they are addind several fields one after the other, this introduces extra spaces.Am I missing something ? there must be a way to completely remove temporarily the field delimiters for printing.
Thanks for your help
Didier
*****Edit *****
I new there was to be something simple: I was hiding correctly the field delimiters, but I was not calling the reformat routine ! -
Julian,
I am sorry I did not answer but I have been real busy with the go live.
thanks for your help
Didier
-
UP,
Julian, I really need an idea; sorry to be a pain, but this is blocking completely my release.
-
Julian, thanks for the answer. but my problem cannot be solved this way as there may (will) be other graphics (pictures for example) that still need to be printed.
It is only that single picture (the logo) which they may or may not want to print.
Didier
-
Hi,
My client has been using a text processor built around Wptools 5 for a number of months. This text processor allows him to generate documents using a system of templates and fields being popukated from a database. Everything works fine.
I recently implemented Wpdf and it works a treat in combination with Wptools 5. Long story to explain the background. in all his templates (or base documents) he has added his logo and would like me to hide the logo when he prints the document, but keep it when a pdf is generated.
How would you go about doing this ? (I would like to add that the logo has been insered as an image, it is not a field or anything.
-
I know how to create a table by code, the only thing I cannot figure out is how to specify that I want the header row content to be underlined.
I have tried specifying that the currattr included underline, but this seems to have no effect; any idea,
in the callback method, I do :
Codeif RowNr=1 then // Header Row ------------------------------ begin Document.CurrAttr.AddStyle([afsUnderline]); Document.CurrAttr.UnderlineMode := WPUND_Standard; Document.CurrAttr.AddStyle([afsBold]);
but this has no effect.
Any idea ?
Didier
-
I have found it for myself. before printing, I am removing the table borders.
In case this helps someone, you just have to remember that all tables are attached to the firstpar of the document. then you simply loop through the Tables array, get the firstlevelPar of the table and proceed through all paragraphes using next. YOu will be out of the table as soon as the parentparagraph type is not in wpistable or wpistablerowCode
Alles anzeigenvar i: integer; table: tParagraph; tblrow : tParagraph; ParentParagraph : tParagraph; j: Integer; begin for i := 0 to pred( document.firstpar.TableCount) do begin table := document.firstpar.Tables[i]; for j := 0 to table.RowCount - 1 do begin tblrow := table.Rows[j].FirstLevelPar; while tblrow <> nil do begin ParentParagraph := tblrow.ParentPar; if (ParentParagraph <> nil) and (ParentParagraph.ParagraphType in [wpIsTable, wpIsTableRow]) then begin if (showit) then tblrow.ASet(WPAT_BorderFlags, WPBRD_DRAW_All4) else tblrow.ASet(WPAT_BorderFlags, 0) ; end; tblRow := tblrow.next; end; end; end; document.DelayedReformat; end;
Didier
-
I would like to design a table which shows a thin border around each cell, but does not print it. Is that possible ?
tIA
Didier
-
Julian
thanks a lot, it works a treat.
Didier
-
-
I need a way to display the cursor (caret) even when the editor is out of focus. the user will switch back/forth between the text and a list of fields show in the tree structure on the left-hand side of the document and will frequently forget where the cursor was which causes some issues!
I have loohed at the cursor data structure (TWPRTFDataCursor) but a) could not find how to get to it from the document and b) could not find anything related to my problem (could be that I did not look properly)
thanks in advance for your suggestions
Didier
-
works fine, thanks
-
I'll try that , thanks
-
My users are secretaries typing reports which are dictated to them. The persons dictating want to be able to review the report before it get send outside. Then they may decide on some changes etc ...
So until they are happy with the document, I would like to print as a background the word 'DRAFT' in a shaded color (and ideally at 45 degre angle, in the middle of the page). This would be removed when they are ready to 'publish' that document.
Not being very familiar, yet, with WPtools, I would very much appreciate any pointer to get me started.
thanks in advance
Didier
-
Works fine,
thanks
Didier