Determining user action(s) during printing process

I need to know if there is a way to detect what the user did during a print operation. Specifically, I need to know whether they chose to “Print” or “Preview”. I would be nice to have a fully enumerated return value of some kind, such as knowing the difference between “Print”, “Preview”, “Export”, “HTML”, etc.

I am programming in .NET 3.5 SP1 using C#. Simplistically, this is how I am launching into the print cycle:

using (ListLabel LL = new ListLabel())
{
LL.LicensingInfo = “myLicense”;
LL.Core.LlSetOptionString(LlOptionString.LLXPathList, “cmll18bm.llx”);
LL.NoNoTableCheck = true;
LL.AddVarsToFields = true;
LL.DelayTableHeader = false;
LL.AutoDefineNewPage += new AutoDefineNewPageHandler(LL_AutoDefineNewPage);

DataSet ds = new DataSet();
//populate ds with tables and records...
LL.SetDataBinding(ds);
String lst = "path to my LST file";
LL.Print(null, LlProject.List, lst, false, LlPrintMode.Export | LlPrintMode.Preview, LlBoxType.StandardAbort, IntPtr.Zero, "Report Designer", true, String.Empty);

}

Once I have called Print(), I would like to then be able to determine whether the user chose to “Print” or to instead simply “Preview” without actually printing to paper. Is this possible?

Hi Don,
thank you for your post.
You can use the LlPrintOptionString.Export to get the targe e.g. in the DrawPage event

[quote]LL.DrawPage += new combit.ListLabel18.DrawPageHandler(this.LL_DrawPage);
private void LL_DrawPage(object sender, DrawPageEventArgs e)
{
string sExportTarget = LL.Core.LlPrintGetOptionString(LlPrintOptionString.Export);
}[/quote]
Best regards,

Erdal Alacali
Technical Support
combit GmbH