Showing posts with label Tab. Show all posts
Showing posts with label Tab. Show all posts

Newline and Tab in Text Fields in SSRS 2005

Both Newline (by press Enter in keyboard) and Tab does not work in either textbox or text fields in SQL Server Reporting Services 2005, despite it looks you can set this in Tools->Options->Text Editor->Basic->Tabs. There is no such problem in SSRS 2008.

Ctri+Shit+Enter will enable to insert Newline. It appears no fix for Tab. Someone suggested using multiple textboxes or table to arrange the indenting.

Removal of New Line Break and Tab/Indentation in JavaScript

Here is the best possible coding for removal of newline break and tab/indentation:

; for (var i=0; i‹ txt.length; i++) txt = txt.replace('\n', ' ')
; for (var i=0; i‹ txt.length; i++) txt = txt.replace('\t', ' ')

This approach avoids the possible non-working of method .search() and RegExp. For details please refer to http://koncordpartners.blogspot.com/2010/02/deal-with-literals-and-escape-sequences.html

Labels