Dear sirs,

In my project I need to format some data from a csv file. The csv file is scanned using the scancsv module and part of this information is formatted inside luacode environment, but the text.print("") and the  context("")  functions don´t be able to send the formatted data to the output. The result is a empty pdf.

The example attached is from a old question.

Thanks a lot for your time

Jorge M.

--- example --

\usemodule[scancsv]

\def\ddmmyyyy#1#2#3{% #1 - date, #2 - old separator, #3 - new separator
\startlua
     local parsedate=thirddata.scancsv.ParseCSVLine('#1','#2');
     local day=tonumber(parsedate[1]);
     local month=tonumber(parsedate[2]);
     local year=tonumber(parsedate[3]);
--     tex.print(day..'#3'..month..'#3'..year);
     text.print("Hello");
\stoplua
}

\unexpanded\def\lineaction{
     \Name\ arrived on \ddmmyyyy{\Date}{/}{.\\,} \\
}


%     Name;Date
%     ME;11/10/14
%     You;05/02/14
%     He;15/02/2014
%     She;03/03/12
%     It;03/03/14

\setheader
  \setsep{;}
  \setfiletoscan{mail.csv}

\starttext
    \filelineaction
\stoptext