DCSIMG
Development - Dor Rotman`s Blog

Browse by Tags

כנסו כנסו! SharePoint Designer 2007 להורדה בחינם!
זו לא מתיחה של 1 באפריל: Microsoft Office SharePoint Designer עכשיו ניתן להורדה בחינם, מאתר ההורדות של מיקרוסופט! ההודעה פורסמה ביום חמישי, וכבר עכשיו ניתן להוריד את התוכנה בקישור הזה . המשמעות היא שמעתה כל לקוח שמעוניין בכך, יכול לעצב לעצמו Master Pages, Workflows, Page Layouts ועוד, בלי לרכוש רישוי בנפרד! (הרי SPD לא היה באף חבילת Office..)   זה צעד מצוין מצד מיקרוסופט, שאני בטוח שיגביר את מיצוי היכולות מ-MOSS ויאפשר למשתמשים לבצע קסטומיזציות יותר חזקות באתרים שלהם. בפרט, ה-Power Users ברחבי...
Converting Word 2007’s WdColor to .NET Color Class
Here’s a small snippet that I wrote for converting a Microsoft.Office.Interop.Word.WdColor object to a System.Drawing.Color object. The WdColor enum values are actually stored as BGR and not RGB. So you must parse the number and isolate the R,G and B elements to re-assemble them into a .NET Color class. Also, during runtime, sometimes a color object gets a value that isn’t listed in the enum. I don’t understand why this happens, but I’m guessing it’s either me being silly or the COM wrapper being...
עבודה עם רשימות גדולות ב-SharePoint
לאחרונה עלה אצלי בעבודה כבר כמה פעמים נושא הרשימות הגדולות ב-SharePoint. כמה פריטים מותר לשים ברשימה או בתיקיה ולשמור על ביצועים טובים?   אז הנה כמה המלצות בנושא: לא לעבור את ה-2000 פריטים בתצוגה \ תיקיה לאנדקס עמודות שמבצעים עליהן סינונים תדירים בפיתוח, בשום אופן לא להשתמש ב-foreach, אלא להריץ שאילתת CAML. תמיד שאילתת CAML תהיה מהירה יותר מאנומרציה של אובייקטים. הנה תמונה מתוך Whitepaper שאספר עליו בהמשך. היא מציגה הבדלי מהירות שאילתא בין השיטות השונות. מדובר על רשימה עם 100,000 פריטים, שרוצים...
How to check if a file exists over HTTP
Here’s a piece of C# code that determines the existence of a file over HTTP, given its URL. (Note that URLs should be encoded.) try { WebRequest request = HttpWebRequest.Create( "http://www.microsoft.com/NonExistantFile.aspx" ); request.Method = "HEAD" ; // Just get the document headers, not the data. request.Credentials = System.Net.CredentialCache.DefaultCredentials; // This may throw a WebException: using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) ...
How to get the context item in an SPD Workflow Activity
David Birin , a talented colleague of mine who also works at Omnisys , has just published a post about getting the context item in a SharePoint Designer Custom Workflow Activity . This post is important for SharePoint developers since most samples you’ll find on the internet ignore this ability. Instead, their workflow activities ask the user to supply an item, while it’s obvious the relevant item is the current one, which the workflow is running on. (Even the ECM samples in the WSS/MOSS SDK have...
Quickstart Guide: Customizing Office 2007 Ribbons
הנה רשימה של מספר קישורים שהם חובה לכל מי שמעוניין לפתח יישומי Office 2007 שישתלבו לתוך ה-Ribbons:   1. Ribbon Overview [MSDN] החבר’ה ב-MSDN השקיעו רבות במאמרים מפורטים וברורים, במגוון נושאים בפיתוח Ribbons. בין הנושאים: איך להשתמש ב-Ribbon Designer של Visual Studio 2008 , איך לייצר Custom Tab שמציג Actions Pane , וכן סקירה של ה-Object Model .   2. Office 2007 UI Style Guide for Solutions and Add Ins זהו מאמר (מסמך Word) המציין שיקולים ו-Best Practices לפיתוח ל-Office. כדאי מאוד לקרוא,...
How to create a custom e-mail alert alert handler in MOSS
A new article from the Microsoft Knowledge Base: How to create a custom e-mail alert alert handler in MOSS This method creates a class that inherits from the IAlertNotificationHandler interface and that uses the OnNotification method. This method enables you to intercept the outgoing e-mail alerts and modify them. You can access most of the properties of the alert. By using XML parsing and SharePoint object model code, you can extract all the information that you must have to modify the e-mail alert...