5
Answers

How to get Numbered Heading list in word using VSTO.

I can get only heading without Number.
 
Here is my code.
 
Selection wordSelection = Globals.ThisAddIn.Application.Selection;
wordSelection.set_Style(WdBuiltinStyle.wdStyleHeading1);
 
But How can I get Numbered Headings. Please anyone can send me the code.It is urgent for me now..
I want like
 
1 Heading
 
   1.1   Heading
 
           1.1.1 Heading 
 
Like this Please send me the code..I am wating. 
Answers (5)
2
Thiyagarajan E

Thiyagarajan E

NA 1.1k 6.8k 8y
I found the Solution:
Finf the Report web config in the below path :
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager\web .config
Replace or add below line: to set admin credential for all users to access the report.

<authentication mode="Windows" /> // Authentication mode to be set to windows

<identity impersonate="true " userName="UserName" password="Password"/> // identity impersonate to be set to true and User name & Password of the SQL Server administrator should be added.