Having fun being a father and a web geek.
Hello, my name is
Who am Who am I? I am a
geek/programmer/webmaster/manager for the bestest company.
I write applications for Web Services and Windows. I also do on the side
contract programming as my time allows (which is not very much).
|Tuesday, July 10, 2018|
Borked SharePoint site? Anyone?
I am ending up with this.
Code Example is here. Powershell
$tempC = new-object System.Net.WebClient
$Ctx = New-Object Microsoft.SharePoint.Client.ClientContext("http://bergren.net/")
#Get the Web
$Web = $Ctx.web
#Frame Master page URL
$MasterPageURL = "$($web.ServerRelativeUrl)/_catalogs/masterpage/seattle.master"
#Set Default Master page & Custom Master page
$web.CustomMasterUrl = $MasterPageURL
$Web.MasterUrl = $MasterPageURL
$fontSchemeUrl = "$($web.ServerRelativeUrl)/_catalogs/theme/15/fontscheme003.spfont"
$themeurl = "$($web.ServerRelativeUrl)/_catalogs/theme/15/Palette013.spcolor"
$imageUrl = "$($web.ServerRelativeUrl)/_layouts/15/images/siteIcon.png?rev=23"
$web.ApplyTheme($themeurl, $fontSchemeUrl, $imageUrl, $false)
Thoughts and Ideas are welcome.
|Wednesday, April 11, 2018|
Pano of saylorville
Just a picture
|Saturday, March 10, 2018|
Sun Dog from January this year.
Just found this on my camera. Forgot I had taken it. One kewl thing about -20 below
|Friday, February 09, 2018|
Most Important TV shows for my life
a while back one of those stupid survey things came up on the fb. It was asking what the most important three TV shows/Movies of your life that impacted you.
Got me to thinking. I do have three. But I have a ton of others that I would love to just site and watch over and over. FireFly for one. Really you need to see this show if you haven't. FireFly free on just about everything. Greatest Space Western of all time.
Anyway here is my list.
most important TV shows of my life?
Buck Rodgers - taught me the future isn't what it used to be. Computers might take over and they might actually work with us.
Macgyver - Anything is fixable
Captain Kangaroo - Childhood and adulthood should be fun. And green jeans are cool. I am wearing some today actually
Greatest American Hero
Ba Ba Black Sheep
Warner Brothers Bugs and Road Runner
Love Boat 8 pm sat
Fantasy Island 9pm Sat
Dukes of Hazard
Thundarr the Barbarian
Dungeons and Dragons Cartoon
Space Above and Beyond
Reef Doctors (Australian Great Show)
Last Man Standing
|Wednesday, September 13, 2017|
SSRS Pageviewer in SharePoint formatting incorrectly 2016
There is your answer. Ok, so you don't need me anymore.
Anyway reports are supposed to be embedded in a page with the pageviewer webpart in SharePoint 2016. The Expansion is on one line and the group name is on another line.
It isn't supposed to be this way.
In the IDE and in SSRS browsing on the Reporting Server it looks just fine.
which is nice and compact.
Hmmm what is going on?
After some googling. Which didn't really give me what I wanted I found this page
So reading thru there I find that adding format= might change the formating. So I tried the
I just added that to the end of each of my URLS in the pageviewer and I was good to go.
Hope this helps.
|Saturday, June 17, 2017|
Pretty night in Iowa
|Monday, June 05, 2017|
XML Document from SharePoint 2016 Client Context
Yep this is always ugly. I have had many opportunities in the past to read the XML file from InfoPath or some other source and open it to get information and create a workflow load into various other systems. We aren't going to discuss the pros and cons of this. Suffice it to say it isn't always optimal. But sometimes things have to be done.
Trying to read thru the following sites.
Microsoft's fun documentation
Obligatory Stack Exchanges to get some ideas on what is going on.
nothing was really working. But wait what? FileStream. Hmmm I can just stream from file into Xdocument right? perhaps?
Yep that works. Simple basically
inner ends up with the entire stream and away you go. One blessed little line.
Code is as follows.
string astr = "\mySPSite\MyLibrary\Myfile.xml";
Microsoft.SharePoint.Client.ClientContext cc = new Microsoft.SharePoint.Client.ClientContext(siteUrl);
cc.Credentials = System.Net.CredentialCache.DefaultCredentials;
Microsoft.SharePoint.Client.Web sp16 = cc.Web;
XmlDocument xDoc = new XmlDocument();
Microsoft.SharePoint.Client.FileInformation f = Microsoft.SharePoint.Client.File.OpenBinaryDirect(cc, astr);
pictures are here.
Other stuff of interest to people possibly.
Trip to Tahiti.
is nice as well