Hi there,
I've got a windows app where I want to send to printer a list of PDF's in a listbox. Stepping through the code below, I can see that *axAcroPDF1.LoadFile(s) is loading each file in my application, but Acrobat only seems to print the last item in the lbPDFList listbox to the printer (eg. if there is 4 PDF's to print, it will always only print the last PDF)?
int iListCounter = lbPDFList.Items.Count;
for (int i=0; i < iListCounter; i++)
{
String s = null;
lbPDFList.SetSelected(i,true);
s = lbPDFList.SelectedItem.ToString();
axAcroPDF1.LoadFile(s);
axAcroPDF1.Show();
axAcroPDF1.printAllFit(true);
}
Is this a threading issue?