Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
R&R Reporting Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00582873
Message ID:
00582888
Vues:
21
Kevin,

lpCode is Long; you're passing it a string (cECode = "").

>
The help file for exeRuntime shows:
>
>BOOL FAR PASCAL execRuntime (int hReport, BOOL bWait,
>int cmdShow,LPINT lpiECode, LPLONG lplPageCount,
>LPSTR lpszEMsg, int emSize)

>
>So I declared is as:
>
> DECLARE Long execRuntime;
>  IN RrRpt32.Dll;
>  AS rr_ExecRuntime;
>    Long hReport,;
>    Long bWait,;
>    Long fsCmdShow,;
>    Long lpCode,;
>    Long lpPageCount,;
>    String emsg,;
>    Long emsgsize
>

>
>and I'm calling it like:
>
>LOCAL nWait AS Boolean
>LOCAL nShow AS Integer
>LOCAL cECode AS String
>LOCAL nPageCount AS Long
>LOCAL cMsg AS String
>LOCAL nMsgSize AS Long
>
>nWait = 1
>nShow = 1
>cECode = ""
>nPageCount = 0
>cMsg = ""
>nMsgSize = 200
>
>nRetVal = rr_ExecRuntime(lnReportHandle, nWait, nShow, @cECode, @nPageCount, @cMsg, nMsgSize)
>
>

>
>
>I'm getting a 'Data Type Mismatch' error. Anyone know what I'm doing wrong?
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform