Sorry made a mistake in the email - the lnLtrBegPage and lnLtrEndPage should be changed to lnBegPage and lnEndPage - the code has it correct and still does not work.
>I've run into this before and was able to work around it - but - this time can't find a suitable workaround...
>
>If I do this:
>
>lnBegPage = 2
>lnEndPage = 2
>oRpt.PrintOut(.F.,1,.F., lnBegPage, lnEndPage)
>
>everything works as it is supposed to...
>
>If I do this:
>
>lnBegPage = thisform.txtBegPage.value
>lnEndPage = thisform.txtEndPage.value
>oRpt.PrintOut(.F.,1,.F., lnLtrBegPage, lnLtrEndPage)
>
>I get "OLE error code 0x80020005: Type mismatch."
>
>The values of thisform.txtBegPage and thisform.txtEndPage are numeric.
>
>Any ideas what's going on???
>
>Thanks
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only