When I loop textlines with tabs in a textglobal and I replace a bookmark with the textglobal, the tabs in Word are shown as ‘\t’ instead of being a real tab.
Any idea how I can do this right?
This is my method:
var size = facturen_to_factuurregels.getSize();
globals.regels = "";
if(size > 0)
{
for(var i = 1 ; i<= size ; i++)
{
var record = facturen_to_factuurregels.getRecord(i);
globals.regels += facturen_to_factuurregels.omschrijving + ' \t' + facturen_to_factuurregels.perstuk + ' \t' + facturen_to_factuurregels.aantal + ' \t' + facturen_to_factuurregels.bedrag + '\n';
}
plugins.it2be_word.replaceBookmark("regels", globals.regels);
}
The text in Word is shown as:
A4 Kopieerpapier \t0.1 \t \t30
A4 Kopieerpapier \t0.1 \t \t30
A4 Kopieerpapier \t0.1 \t \t30
(I know the number formatting is still not right, but that doesn’t matter for now)