Split table on 2 pages

I have a table that takes up the bottom 1/4 of the first page. If the contents of this table is too long for the first page, I would like it to continue onto the second page. For the life of me I can’t get this to work. In designer I create a new document, put a table on the first page, copied this table to the following pages layer. I’ve messed around with all the properties but still can’t seem to get it to work.

This is my printloop:

hJob = LlJobOpen(CMBTLANG_ENGLISH);
LlSetOptionString(hJob, LL_OPTIONSTR_LICENSINGINFO, “P5G0D”);
LlSetOption(hJob,LL_OPTION_AUTOMULTIPAGE, TRUE);
LlDefineFieldExt(hJob, “@Remarks”,"", LL_TEXT, NULL);

LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.File”, exportName);
LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Path”, pathSelected);
LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Quiet”, “1”);

error = LlPrintWithBoxStart(hJob, LL_PROJECT_LIST, path,LL_PRINT_EXPORT,LL_BOXTYPE_NORMALMETER, this->m_hWnd, “Printing…”);
LlPrintSetOptionString(hJob, LL_PRNOPTSTR_EXPORT, “PDF”);

LlDefineFieldStart(hJob);
LlPrint(hJob);
LlDefineFieldExt(hJob, “@Remarks”, remark, LL_TEXT, NULL);

int nRet;
nRet = LlPrintFields(hJob);
while(nRet == LL_WRN_REPEAT_DATA){
LlPrint(hJob);
nRet = LlPrintFields(hJob);
}

LlPrintFieldsEnd(hJob);
LlPrintEnd(hJob,0);
LlJobClose(hJob);

I wonder if anyone can provide me with some help!

No need for two separate tables.

With List & Label, you (usually) only use one table. The positioning
of the table is done by formula or object linking. For example, look
at the bills in the LLDEMO example.

In short, you design a table as large as it ever may become, and
define its start point (or size) by linking it at a pre-pending
object. Then it will all work automatically.

Paulchen

“Andrew G” <gagnon.ld2@forces…> wrote in message
news:552332200919534@combit.net…

I have a table that takes up the bottom 1/4 of the first page. If the
contents of this table is too long for the first page, I would like
it to continue onto the second page. For the life of me I can’t get
this to work. In designer I create a new document, put a table on the
first page, copied this table to the following pages layer. I’ve
messed around with all the properties but still can’t seem to get it
to work.

This is my printloop:

hJob = LlJobOpen(CMBTLANG_ENGLISH);
LlSetOptionString(hJob, LL_OPTIONSTR_LICENSINGINFO, “P5G0D”);
LlSetOption(hJob,LL_OPTION_AUTOMULTIPAGE, TRUE);
LlDefineFieldExt(hJob, “@Remarks”,“”, LL_TEXT, NULL);

LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”,
“Export.File”, exportName);
LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”,
“Export.Path”, pathSelected);
LlXSetParameter(hJob, LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”,
“Export.Quiet”, “1”);

error = LlPrintWithBoxStart(hJob, LL_PROJECT_LIST,
path,LL_PRINT_EXPORT,LL_BOXTYPE_NORMALMETER, this->m_hWnd,
“Printing…”);
LlPrintSetOptionString(hJob, LL_PRNOPTSTR_EXPORT, “PDF”);

LlDefineFieldStart(hJob);
LlPrint(hJob);
LlDefineFieldExt(hJob, “@Remarks”, remark, LL_TEXT, NULL);

int nRet;
nRet = LlPrintFields(hJob);
while(nRet == LL_WRN_REPEAT_DATA){
LlPrint(hJob);
nRet = LlPrintFields(hJob);
}

LlPrintFieldsEnd(hJob);
LlPrintEnd(hJob,0);
LlJobClose(hJob);

I wonder if anyone can provide me with some help!