Hi,
Again Thanks for your time.
I have the code working for txt file but not FOXP tables.
I have an error of
Failed to connect to the database using:
ADO ERROR: Not a valid file name.
I can see you are having to transfer connection information from
datasource level
to job ticket level.
My code is below, this snippet doesnt show I have previously created a
datasource called "Daily Data" and connection string to the
TESTFILE.DBF
// Create the job ticket web service
object
JobTicket.JobTicket_SSP jobTicketWS =
new JobTicket.JobTicket_SSP();
// Create a new job ticket
string jobTicketID =
jobTicketWS.CreateNewTicketForDocument(uName,
password,
strcdoc_id, "", false);
///////////////////// new
// Set recipient list
JobTicket.RecipientsInfo riInfo = new
JobTicket.RecipientsInfo();
riInfo.m_Filter = FileName; ----
TESTFILE.DBF
riInfo.m_FilterType = 3;
JobTicket.Connection conn = new
JobTicket.Connection();
conn.m_ConnectionString = ConStr;
conn.m_Type = strcdstype; --FOXP
conn.m_AdditionalInfo =
AdditionalConn; ---- TESTFILE.DBF
DataSource.Connection connds =
dataSourceObj.GetConnectionInfo(
uName,
password,
dataSourceID);
conn.m_ConnectionString =
connds.m_ConnectionString;
conn.m_Type = connds.m_Type;
conn.m_AdditionalInfo =
connds.m_AdditionalInfo;
jobTicketWS.SetRI(uName, password,
jobTicketID, riInfo, conn);
On May 15, 5:44 am, Guillaume Besnier <
guillaume.besnier...@gmail.com>
wrote:
> You are right: it eventually appears I rarely use
> JobTicket.SetDataSource myself.
>
> Program.cs
> 3KViewDownload
>
> Prefer simply using JobTicket.SetRI, with a Connection object provided
> by DataSource.GetConnection (which will kindly specify the connection to
> the relevant DataSource).
>
> Attached is a simple snippet.
>
> -------- Message original --------
> Sujet: [xmpie-users] Re: uProduce Data Sources and Recipient Tables
> De : Automation <
paulnewman_1...@hotmail.com>
> >>> problems.- Hide quoted text -
>
> - Show quoted text -