I am doing a mail-merge type of project, where letters for individuals in the list may be of different numbers of pages. I’m experiencing a problem which I hope someone with more experience may be able to help with.
If I print one individual’s letter as a single item, ie he’s the only person in the merge list, then his letter prints perfectly, with 4 pages.
If I print this person’s letter as the second person in a list, then the final two pages of his letter do not print.
I call LLPrintResetProjectState between each person on the list.
If I look at the log file for this person, then at the end of the second page of his letter when he’s the only person in the list I see the following:
MFC42.DLL -> 00:35.485 CMLL11.DLL 00000f28 LlPrint(1)
MFC42.DLL -> 00:40.995 CMLL11.DLL 00000f28 =-998
MFC42.DLL -> 00:41.000 CMLL11.DLL 00000f28 LlPrintFields(1)
MFC42.DLL -> 00:41.006 CMLL11.DLL 00000f28 =-998
MFC42.DLL -> 00:41.010 CMLL11.DLL 00000f28 LlDefineFieldStart(1)
and it’s fine. If he’s the second person in the list the log file looks as below
MFC42.DLL -> 08:26.894 CMLL11.DLL 00000f28 LlPrint(1)
MFC42.DLL -> 08:33.286 CMLL11.DLL 00000f28 =-998
MFC42.DLL -> 08:33.322 CMLL11.DLL 00000f28 LlPrintFields(1)
MFC42.DLL -> 08:33.335 CMLL11.DLL 00000f28 =0
MFC42.DLL -> 08:33.339 CMLL11.DLL 00000f28 LlPrintFieldsEnd(1)
MFC42.DLL -> 08:33.354 CMLL11.DLL 00000f28 =0
MFC42.DLL -> 08:33.358 CMLL11.DLL 00000f28 LlPrintResetProjectState(1)
and you can see that the call to LlprintFields no longer returns the WARN code, which is why the final two pages don’t print.
Can anyone see what I’m doing wrong here?
Thanks in advance