Beiträge von diamondglen

    I want to produce a PDF file comprised of an RTF file followed by a JPEG image on a separate page. This is my code:

    Unfortunately, the JPEG appears first in the PDF file. Any suggestions?

    The C# sample EMFExport gave the following when run

    PInvokeStackImbalance was detected
    Message: A call to PInvoke function 'wPDF!wPDF.wWindowsWrap::GetDC' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

    followed by an OutOfMemoryException at the DrawImage call.

    Is trial version of Visual C# supported?

    I am using WPTools 4.22a. I have a document with several edit fields showing in DBWPRichText1. I want to save it to disk and open it in another program (e.g. Word, WordPerfect). So I tried the following:

    Code
    FileName := 'Template Test.rtf';
    
    
      DBWPRichText1.SaveToFile(FileName);
    
    
      // open the selected file using the shell
      ShellExecute(Self.Handle, 'open', PChar(FileName), nil,
            PChar(ExtractFileDir(FileName)), SW_SHOWNORMAL);

    I cannot see the merged data in Word. Is there an attribute I can set to make the merged data show up?

    TIA.