Welcome

Welcome to the PDF Include forum. Be sure to subscribe, and then click "my subscription" (in the menu on the right hand side) so that you can enable email notifications. That way, you can send and receive forum posts via pdfinclude@groups.oehive.org.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

How to fix the compile error?

When I run the following code, I found the error message: Mismatched number of parameters passed to procedure /home/jones/p85490r.ped.
(3234) , How to fix it? (I use HPUX11i progress 8.3E05.

code:
DEFINE INPUT PARAMETER p_TextFile AS CHARACTER NO-UNDO.
DEFINE INPUT PARAMETER p_PDFFile AS CHARACTER NO-UNDO.

DEFINE VARIABLE v_line AS CHARACTER NO-UNDO.

{ pdf_inc.i}

RUN pdf_new ("Spdf",p_PDFFile).
RUN pdf_set_BottomMargin("Spdf",50).
RUN pdf_new_page("Spdf"). /* Instantiate a new page */

INPUT FROM VALUE(p_TextFile) NO-ECHO.
REPEAT:
IMPORT UNFORMATTED v_Line.

RUN pdf_text_color ("Spdf",0.0,.0,.0).
RUN pdf_text ("Spdf", v_Line).
RUN pdf_skip ("Spdf").

IF INDEX(v_Line,CHR(12)) > 0 THEN
RUN pdf_new_page("Spdf").
END.
INPUT CLOSE.
RUN pdf_close("Spdf").


How to fix the compile error

Hi Joe,

You are running the program from the progress editor but you have input parameters. That would not work. Why do you need the input parameters? Are you passing it from somewhere?

Regards,

Sam Leung
Pro-Sys Consultants Ltd.