Stimulsoft Reports.JS discussion
			
		
		
			
				
																			
								jcmmde 							 
									
		Posts:  8 Joined:  Fri Mar 17, 2017 9:06 pm 
		
						
						
													
							
						
									
						Post 
					 
								by jcmmde  Tue Apr 04, 2017 8:35 pm 
			
			
			
			
			I can't seem to get the "HTML File" off the Save Menu drop down in the viewer.
Code: Select all 
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.height = "100%";
options.appearance.scrollbarsMode = true;
options.toolbar.showDesignButton = true;
options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct;
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table;
options.toolbar.showAboutButton = false;
options.exports.showExportToPdf = false;
options.exports.showExportToWord2007 = false;
options.exports.showExportToDocument = false;
options.exports.showExportToHtml = false;
Thanks...
					
						Attachments
					 
											
			
		
				
			HTML.png (5.13 KiB) Viewed 3823 times 
		 
		
		
			 
									 
			
									
									
						 
		 
		 
				
			 
				
		
		
			
				
																			
								HighAley 							 
									
		Posts:  8430 Joined:  Wed Jun 08, 2011 7:40 amLocation:  Stimulsoft Office 
		
						
						
													
							
						
									
						Post 
					 
								by HighAley  Thu Apr 06, 2017 7:49 am 
			
			
			
			
			Hello.
There are two exports (HTML and HTML5) are joined in this menu item.
Please, disable both items:
Code: Select all 
options.exports.showExportToHtml = false;
options.exports.showExportToHtml5 = false;
Thank you.
 
		 
		 
				
			 
				
		
		
			
				
																			
								jcmmde 							 
									
		Posts:  8 Joined:  Fri Mar 17, 2017 9:06 pm 
		
						
						
													
							
						
									
						Post 
					 
								by jcmmde  Thu Apr 06, 2017 7:48 pm 
			
			
			
			
			That worked great for the viewer.   Thanks!
			
							
					
						Attachments
					 
											
			
		
				
			Report_Preview.png (15.19 KiB) Viewed 3783 times 
		 
		
		
			 
									 
			
									
									
						 
		 
		 
				
			 
				
		
		
			
				
																			
								HighAley 							 
									
		Posts:  8430 Joined:  Wed Jun 08, 2011 7:40 amLocation:  Stimulsoft Office 
		
						
						
													
							
						
									
						Post 
					 
								by HighAley  Fri Apr 07, 2017 10:48 am 
			
			
			
			
			Hello.
This task will be a little harder to solve.
You could use next code to hide the exports:
Code: Select all 
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
designer.renderHtml("content");
var viewer = designer.jsObject.options.viewerContainer.firstChild;
viewer.jsObject.controls.menus.saveMenu.items["Html"].style.display = "none";
viewer.jsObject.controls.menus.saveMenu.items["separator2"].style.display = "none";
Thank you,
 
		 
		 
				
			 
				
		
		
			
				
																			
								ADev2000 							 
									
		Posts:  5 Joined:  Tue Jul 16, 2019 8:36 pm 
		
						
						
													
							
						
									
						Post 
					 
								by ADev2000  Mon Nov 18, 2019 3:30 pm 
			
			
			
			
			I am not able to remove data file export option. Is this the right property?
			
			
									
									
						 
		 
		 
				
			 
				
		
		
			
				
																			
								Lech Kulikowski 							 
									
		Posts:  7452 Joined:  Tue Mar 20, 2018 5:34 am 
		
						
						
													
							
						
									
						Post 
					 
								by Lech Kulikowski  Tue Nov 19, 2019 10:33 pm 
			
			
			
			
			Hello,