Questions about HTML Listing Report

Discussions about editing and cleaning data
Post Reply
Guest

Questions about HTML Listing Report

Post by Guest »

I found the HTML listing Batch to be very convenient, but some HTML tags doesn't work.

There are no problems with ,,, etc.

But there are compilation problems when trying to use formating tags such as , or , etc.
which could be very usefull.

Would it be complicate to use those tags and how to integrate in CSPro?

This works --> filewrite(html,"Questionnaire %d",GDC_QUESTIONNAIRE_ID);

This doesn't --> filewrite(html,"Questionnaire %d",GDC_QUESTIONNAIRE_ID);
lls
Posts: 109
Joined: December 6th, 2011, 3:11 pm
Location: Geneva, Switzerland

Re: Questions about HTML Listing Report

Post by lls »

This works --> filewrite(html,"Questionnaire %d",GDC_QUESTIONNAIRE_ID);

This doesn't --> filewrite(html,"Questionnaire %d",GDC_QUESTIONNAIRE_ID);
lls
Posts: 109
Joined: December 6th, 2011, 3:11 pm
Location: Geneva, Switzerland

Re: Questions about HTML Listing Report

Post by lls »

Sorry, I meant

This works --> filewrite(html,"p+h2+strong+Questionnaire %d+/strong+/h2+",GDC_QUESTIONNAIRE_ID);

This doesn't --> filewrite(html,"p+font color="#0000ff"+h2+strong+Questionnaire %d+/strong+/font+/h2+",GDC_QUESTIONNAIRE_ID);
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Questions about HTML Listing Report

Post by Gregory Martin »

The issue here is with the quotation marks. If you want to use quotation marks in your string, your best option is to surround the string using single quotes, like this:
filewrite(html,'p+font color="#0000ff"+h2+strong+Questionnaire %d+/strong+/font+/h2+',GDC_QUESTIONNAIRE_ID);
The way it was coded before, the quotation mark in front of #0000ff was terminating the string and then you would get a compiler error when CSPro couldn't figure out what #0000ff was.


Last bumped by Anonymous on July 12th, 2012, 7:06 pm.
Post Reply