Beiträge von wpsupport

    WPDBGrid - a data sensitive version of the standard Firemonkey grid.

    Attach it to a data source to instantly see the contained data. It is possible to use the runtime/designtime columns designer to customize the view.

    wpdbgrid_screenshot.png

    To download please register as user on this forum and, in your user account management area, enter the group "FireMonkey".

    We will inform members of this group when there are new Firemonkey components available from WPCubed via e-mail.

    Of course you can enter and leave the group anytime and there are no costs.

    You will find the download here: https://www.wpcubed.com/ftp2/WPDBGrid.zip

    Mit den DrawObjects geht das eigentlich. Diese werden auf das PDF ausgebracht und müssen aber noch "gerendert" werden. Dabei werden Graphiken in PS code gewandelt und könne n mit der PDF abgespeichert werden.

    Soll das programm gesteuert passieren?

    Andrenfalls ist PDFEdit ein Beispiel - dort kann man das interaktiv machen.

    Im Manual wird unter "DrawShapes" beschrieben wie diese DrawObjekte durch code erzeugt werden.


    und für Text:

    Code
    I have a problem to open a PDF file in WpViewPDF, when the PDF is with V1.4 it opens normal and when the PDF is with V1.3 it does not open.
    I have the WPViewPDF V2.0 version in Delphi 7.

    WPViewPDF does not really check the version number of the PDF. I would expect that the PDF is unsupported by WPViewPDF for a different reason.

    But current version is WPViewPDF V4 - I recommend to upgrade. The cost is 70% of the regular price, valid for the PLUS edition as well.

    Thanks for your comment,

    For the start this tool should work on Windows and OSX. I also see a chance that it can work on Linux (with fmxlinux) as well. The dialogs which have been converted already are responsive to make them more independent from the screen layout.

    Support for Android is under consideration, not necessarily as word processor (another) but as reporting and document creation engine.

    wptools_fmx_beta1.png

    This screenshot shows how the current build of the WPTools-FMX beta loads a rather big document: The WPTools manual.

    It is able to display the preview, there are dialogs to find&replace, page and paragraph properties.

    Today improvement: The ruler and the editor responds well to the FMX scaling - the display quality does not degrade with higher scaling factors. So it is possible to build applications which can dynamically adjusted to screen resolution or user requirements!

    Please send an e-mail if you want to try out the beta exe for windows.

    function TParagraph.TabstopAdd(Value: Integer; Kind: TTabKind = tkLeft;

    Fill: TTabFill = tkNoFill; ColorNr: Integer = 0): Boolean;

    Adds a tabstop to the style. The value has to be specified in twips. If the function

    returns TRUE the tab was added, if it is false an existing was modified.

    Das funktioniert auch mit einer Zelle, natürlich, also

    Table.Rows / Cols

    Wenn man aus der GUI das machen nimmt man die TWPRichText Methode:

    function TWPCustomRtfEdit.TabstopAdd(PosInTwips: Integer;

    Kind: TTabKind = tkLeft; FillMode: TTabFill = tkNoFill;

    FillColor: Integer = 0): Boolean;

    Es gibt natürlich mehr "Tabstop..." Funktionen - siehe unit WPCtrMemo.

    Delphi hat eine nützliche "Suche in Dateien" Funktion die mir immer sehr gute Dienste erweist.

    Ok, this is about wPDFControl, not the VCL wPDF.

    It is not clear for me what your landscape-metafile looks like. Is it rotated by 90 degrees?

    If not, as I assume, do not set the landscape flag in wPDFControl.

    If you use StartPage ... EndPage you can create a page with the desired dimensions (resolution in 72 dpi) and then use the Canvas methods to draw your metafile.

    You can apply Graphics methods to rotate any subsequent output and then draw your metafile on this Canvas. You can also print on this "Canvas".

    Do not use DrawMetafile since it will output your metafile data without any change.

    Untertabellen würde ich vermeiden, sofern irgendwie möglich.

    Wenn man eine Tabelle in eine Zelle einfügt, bleibt immer der erste Absatz erhalten. Die Tabelle kann nicht ganz am Anfang stehen, da sie ein Kind Objekt der Zelle sein muss. DeleteParagraphEnd wird hier fehlschlagen.

    Um eine Tabelle zu speichern, kann man einfach par.SaveToString verwenden, also keine Selektion.

    Der Absatz am Ende der Tabelle kommt durch die Speicherfunktion. Am Ende eines RTF Textes wird immer ein Absatz generiert.

    Speichern Sie im WPT Format, dann passiert das nicht.

    s := par.SaveToString(false, 'WPT');

    Nein das geht nicht (ausser über custom paint) - ist das zum derzeitigen Zeitpunkt wichtig?

    Es gibt eine Möglichkeit Zellen durch Programmcode zu selektieren:

    CellSelectionAdd und CellSelectionRemove.

    Code aus dem Demo Projekt "H) Techniques\TableTools\"

    Schon klar. Ich hatte letzte Woche aber Urlaub und es daher erst gerade eben getestet. Ich sehe, dass die Selektion nicht korrekt weitergeführt wird wenn versteckte Zellen verwendet werden (wpKeepCellsWhenCombiningCells). Problem wird behoben im nächsten Build.

    Was korrekt funktioniert ist die SelectColumn Funktion welche über eine entsprechende Aktion oder auch aus der Toolbar zur Verfügung steht.