Download presentation
Presentation is loading. Please wait.
Published byJair Ray Modified over 10 years ago
4
VS2005VS2008VS2010 F5 Deploy Debug WSP csomag SPSolGen WSP View 64 bit támogatás Javított WSP View Külön Package Command Parancssori build Szekvenciális munkafolyamat Állapotgép munkafolyamat VSeWSSVSeWSS 1.3 Vizuális tervezőeszközök Packaging & Deployment Project & Item sablonok TFS integráció Projektek & Eszköz bővítés 2007200820092010
15
private String _imageName = "firstImage.png" public System.Drawing.Image GetCustomImage(IRibbonControl control) { WebClient webClient = new WebClient(); webClient.Credentials = CredentialCache.DefaultCredentials; byte[] imageBytes = webClient.DownloadData(String.Format( @"HTTP://SP2010/_layouts/images/{0}", _imageName); MemoryStream imageStream = new MemoryStream(imageBytes); System.Drawing.Image image = System.Drawing.Image.FromStream(imageStream); return image; } private String _imageName = "firstImage.png" public System.Drawing.Image GetCustomImage(IRibbonControl control) { WebClient webClient = new WebClient(); webClient.Credentials = CredentialCache.DefaultCredentials; byte[] imageBytes = webClient.DownloadData(String.Format( @"HTTP://SP2010/_layouts/images/{0}", _imageName); MemoryStream imageStream = new MemoryStream(imageBytes); System.Drawing.Image image = System.Drawing.Image.FromStream(imageStream); return image; }
16
private IRibbonUI _ribbon; public void Ribbon_Load(IRibbonUI ribbonUI) { _ribbon = ribbonUI; } public void MyButton_OnAction(IRibbonControl control) { _imageName = "secondImage.png"; _ribbon.InvalidateControl("MyButton"); } private IRibbonUI _ribbon; public void Ribbon_Load(IRibbonUI ribbonUI) { _ribbon = ribbonUI; } public void MyButton_OnAction(IRibbonControl control) { _imageName = "secondImage.png"; _ribbon.InvalidateControl("MyButton"); }......
22
ConversionJob conversionJob = new ConversionJob("Word Automation Services"); conversionJob.Name = "PDF conversion"; conversionJob.UserToken = web.CurrentUser.UserToken; conversionJob.Settings.UpdateFields = true; conversionJob.Settings.OutputSaveBehavior = SaveBehavior.AlwaysOverwrite; conversionJob.Settings.OutputFormat = SaveFormat.PDF; conversionJob.AddFile(wordFilename, wordFilename.Replace(".docx", ".pdf")); conversionJob.Start(); ConversionJob conversionJob = new ConversionJob("Word Automation Services"); conversionJob.Name = "PDF conversion"; conversionJob.UserToken = web.CurrentUser.UserToken; conversionJob.Settings.UpdateFields = true; conversionJob.Settings.OutputSaveBehavior = SaveBehavior.AlwaysOverwrite; conversionJob.Settings.OutputFormat = SaveFormat.PDF; conversionJob.AddFile(wordFilename, wordFilename.Replace(".docx", ".pdf")); conversionJob.Start();
24
Import Export FejlesztőBusiness Analyst/Process Designer WSP Package Designer/IW/Power User
28
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.