A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq

Monday, September 27, 2010

ClearType Technology

Well, not related to SharePoint but ClearType is a technology that you must be aware of.
"ClearType is a software technology developed by Microsoft that improves the readability of text on existing LCDs (Liquid Crystal Displays), such as laptop screens, Pocket PC screens and flat panel monitors. With ClearType font technology, the words on your computer screen look almost as sharp and clear as those printed on a piece of paper ... "
Read more on http://www.microsoft.com/typography/WhatIsClearType.mspx
You can use online tuner on Microsoft site to turn on ClearType settings on your machine.
This is useful especially if you are using a laptop. There is no harm in trying.

If you think you have committed a mistake and you are not happy with the cleartype font, follow these steps to revert to your original settings:
  1. Go to Display settings in control panel.
  2. Select "Appearance" tab in Display Settings.
  3. Click on "Effects."  button.
  4. Select "Standard" in the "smooth edges" drop down. Complete drop down name is "Use the following method to smooth edges of screen fonts:"
  5. Save your settings. 

-SSA

Sunday, September 26, 2010

How to use UserProfileManager in .NET code?

I want alert to be sent to multiple users.

Q: I want alert to be sent to multiple users. "Alert Me" doesn't help!

One way is to use "Alert Me" option. If you are using Outlook, use Tools > Rules and Alerts > New Rule to create a rule that will automatically forward the email to other people.
Update: This post was written long ago when there was no MOSS or WSS 3. Managing alerts for different users was not possible OTB. So, this simple technique provided a way to the users to forward the important news to the other users. for example, users used "Alert Me" to subscribe to the site messages and in the outlook created a rule to forward the received email from SharePoint to the group of other users who had not subscribed to the site news.
SSA

Q: I want alert to be sent to multiple users. "Alert Me" doesn't help!

One way is to use "Alert Me" option. If you are using Outlook, use Tools > Rules and Alerts > New Rule to create a rule that will automatically forward the email to other people.

Update: This post was written long ago when there was no MOSS or WSS 3. Managing alerts for different users was not possible OTB. So, this simple technique provided a way to the users to forward the important news to the other users. for example, users used "Alert Me" to subscribe to the site messages and in the outlook created a rule to forward the received email from SharePoint to the group of other users who had not subscribed to the site news.

Friday, September 24, 2010

spListItem["Modified By"] property gives you the name of the person who last modified the document.
Have a look at the following code. You can get file's URL in EventFileURL if you are using EventHandlerToolkit.
spFile = EventWeb.GetFile( EventFileUrl );
if (spFile.Exists)
{
spListItem = spFile.Item;
}
string strModifiedBy = spListItem["Modified By"].ToString();
and if you want to send an email, here is how you can do it. You can send email in OnDelete(), OnInsert(), OnUpdate(), etc
private void OnDelete()
{
    //Insert code here: capture the name of the person who modified the document
    //Send email

MailMessage msg;
  
SmtpMail.SmtpServer = "smtp.yourserver.com";
msg = new MailMessage();
msg.BodyFormat = MailFormat.Html;
msg.From =  currentWeb.Author.Email; //you can use hard code the sender here
msg.Subject = "File Deleted";
msg.Body = "File has been deleted";
msg.To = currentWeb.Users[strModifiedBy].Email;
SmtpMail.Send(msg);
    
}

-SSA

Monday, August 23, 2010

SharePoint MVP Experts Chat - Sep 29, 2010

Live Chats to Learn more about SharePoint with the MVP Experts Do you have questions about SharePoint? Want to learn more about the recently launched SharePoint 2010?
By popular request, SharePoint MVPs ;http://mvp.support.microsoft.com/ from around the world are participating in a live chat event about SharePoint.
These QA events are a great opportunity to tap into the vast knowledge of these industry professionals who are regarded as the best in their field. Please join us on Wednesday Sept 29th at 9am PDT or noon EST.
Learn more and add these chats to your calendar by visiting the MSDN event page http://msdn.microsoft.com/en-us/chats/default.aspx

This month chat with the following MVPs:

1. Becky Bertram

https://mvp.support.microsoft.com/profile=4A8DBB36-7E8A-404B-A4EC-26F9359F6CDB

2. Bil Simser

https://mvp.support.microsoft.com/profile=0CEB733B-A635-43E2-8D69-1FB8F156CDB2 (Canada)

3. Clayton Cobb

https://mvp.support.microsoft.com/profile=4B344451-9F5A-4E55-9050-C4B2F8139B32 (InfoPath)

4. Dan Attis

https://mvp.support.microsoft.com/profile=2E62AECB-C2CA-4AD7-B7D9-C6440B3A2BB9

5. Ivan Sanders
https://mvp.support.microsoft.com/profile=A807DC95-C282-43C3-959B-B9823A4B5299

6. Jason Medero
https://mvp.support.microsoft.com/profile=D5C78F3B-E549-490A-9D95-AF2540C79303

7. Jeremy Thake
https://mvp.support.microsoft.com/profile=EFCBCBD4-28CE-4282-918C-29BE7931F202 (Australia)

8. Maurice Prather
https://mvp.support.microsoft.com/profile=E395D81E-5BA2-4FC8-81F6-063A4D08C4D0

9. Mike Oryszak
https://mvp.support.microsoft.com/profile=E6B67F42-8657-4A60-9B21-2029ED7C0257

10. Paul Galvin

https://mvp.support.microsoft.com/profile=89F10A4D-1CF7-432C-9151-48D6B1947A95

11. Paul Stork

https://mvp.support.microsoft.com/profile=6D05CC8D-32ED-4626-A29E-142DC7A680E0

12. Randy Drisgill

https://mvp.support.microsoft.com/profile=CCCAAF20-5706-4130-A1A6-4712DB3EE799

13. Saifullah Shafiq Ahmed
https://mvp.support.microsoft.com/profile=BCFEB833-EE98-4D16-85A9-AE990AD852A2 (Pakistan)

14. Sean Wallbridge
https://mvp.support.microsoft.com/profile=07AFB598-2B93-45DD-B42A-27226F238140 (Canada)

15. Wictor Wilén
https://mvp.support.microsoft.com/profile=25CDE2C8-BEE3-4A3A-B711-2DDA8483A1A0 (Sweden)

Wednesday, July 28, 2010

sp2010 upgrade reqs (basics)

joel's session at #spsbmore sp2010 reqs -moss 2007 sp2 update -64 bit os for application servers . windwos server 2008 or 2008 R2 -64 bit sql server .2008 sp1 cu5 -for dev environments .64 bit vista sp1 and win7 -virtualization