<?xml version="1.0"?>
<rss version="2.0"><channel><title/><link>https://www.edugeek.net/blogs/blog/1000-benrwbs-blog/</link><description/><language>en</language><item><title>Creating a box and whisker plot in Excel 2007</title><link>https://www.edugeek.net/blogs/entry/806-creating-a-box-and-whisker-plot-in-excel-2007/</link><description><![CDATA[<p>Excel doesn't have a built-in Box and Whisker chart type, but it's possible to make something similar-looking using a Stock chart.</p><p> </p><p>
I have created a PDF detailing how to do this:</p><p>
<a href="https://www.edugeek.net/applications/core/interface/file/attachment.php?id=202" data-fileid="202" data-fileext="pdf" rel="">Creating a box and whisker plot in Excel 2007.pdf</a></p>]]></description><guid isPermaLink="false">806</guid><pubDate>Thu, 31 Jan 2013 12:05:43 +0000</pubDate></item><item><title>SIMS.net - read-only access to staff Contract details</title><link>https://www.edugeek.net/blogs/entry/798-simsnet-read-only-access-to-staff-contract-details/</link><description><![CDATA[<p>Just leaving this here in case anybody comes up against the same problem in future....</p><p> </p><p>
I wanted to give a member of staff read-only access to Staff Contracts in SIMS.net. (Autumn 2012 release, 7.148)</p><p> </p><p>
None of the built-in groups in System Manager seemed to offer the level of access I wanted, so I created my own.</p><p> </p><p>
I granted the group read-only access to staff details (by selecting "Staff" from the permissions list and clicking "Set View").</p><p> </p><p>
However, when the user logged on and opened the staff details page, the "Contract" and "Service Agreement" panels (under section 8. Employment Details) were completely missing.</p><p> </p><p>
Eventually, after experimenting with Permissions, I found the answer was to enable the "P7 Field Trial" permission, under Personnel.</p><p> </p><p>
<a class="ipsAttachLink ipsAttachLink_image" href="https://www.edugeek.net/uploads/monthly_2013_01/perm.png.a92e908f98c7e863c0ab29919cfb7057.png" data-fileid="190" data-fileext="png" rel=""><img class="ipsImage ipsImage_thumbnailed" alt="perm.png.a92e908f98c7e863c0ab29919cfb7057.png" data-fileid="190" data-src="https://www.edugeek.net/uploads/monthly_2013_01/perm.png.a92e908f98c7e863c0ab29919cfb7057.png" src="https://www.edugeek.net/applications/core/interface/js/spacer.png" /></a></p><p> </p><p>
This solved the problem and the Contract and Service Agreement panels then appeared, allowing read-only access.</p>]]></description><guid isPermaLink="false">798</guid><pubDate>Tue, 22 Jan 2013 12:34:08 +0000</pubDate></item><item><title>SIMSPERM!</title><link>https://www.edugeek.net/blogs/entry/499-simsperm/</link><description><![CDATA[<p>I have adapted the SIMSPERM batch file so that it can be applied as a Startup Script via Group Policy.</p><p> </p><p>
</p><pre class="ipsCode">
<a contenteditable="false" rel="" href="https://www.edugeek.net/profile/15239-echo/" data-mentionid="15239" data-ipshover-target="https://www.edugeek.net/profile/15239-echo/?do=hovercard" data-ipshover="">@echo</a> off

if not exist "%ProgramFiles%\SIMS" goto end

if exist "%ProgramFiles%\SIMS\doneperm.txt" goto end

path \\[color="red"]server[/color]\netlogon

SubInAcl /FILE %WINDIR%\SIMS.INI /GRANT=[color="red"]domain\group[/color]=F
SubInAcl /SUBDIRECTORIES "%ProgramFiles%\SIMS\*.*" /GRANT=[color="red"]domain\group[/color]=F
SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes /GRANT=[color="red"]domain\group[/color]
SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID /GRANT=[color="red"]domain\group[/color]
SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface /GRANT=[color="red"]domain\group[/color]
SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib /GRANT=[color="red"]domain\group[/color]

echo y &gt;"%ProgramFiles%\SIMS\doneperm.txt"

:end
</pre><div></div><p></p><p> </p><p>
Notes: SubInAcl.exe must be copied to the netlogon folder.</p><p> </p><p>
This has been tested with Windows XP only. Not sure if it will work on Vista/7.</p>]]></description><guid isPermaLink="false">499</guid><pubDate>Mon, 23 May 2011 08:35:27 +0000</pubDate></item><item><title>Winforms WebBrowser control</title><link>https://www.edugeek.net/blogs/entry/477-winforms-webbrowser-control/</link><description><![CDATA[<p>I've been playing around with the WinForms WebBrowser control this morning, and after lots of experimentation have finally figured out how to use some of the printing functionality.</p><p> </p><p>
First of all, Add a Reference to SHDocVw. (Project &gt; Add Reference &gt; Browse &gt; C:\Windows\System32\shdocvw.dll)</p><p> </p><p>
Secondly load a document into the browser using webBrowser1.Navigate(url).</p><p> </p><p>
Then, </p><p>
to do "<strong>Print Preview</strong>"...</p><p>
</p><pre class="ipsCode">
[color="#teal"]IWebBrowser2 [/color]browser = ([color="teal"]IWebBrowser2[/color])webBrowser1.ActiveXInstance;
[color="blue"]object [/color]pvaIn = [color="teal"]Missing[/color].Value;
[color="blue"]object [/color]pvaOut = [color="teal"]Missing[/color].Value;
browser.ExecWB([color="teal"]OLECMDID[/color].OLECMDID_PRINTPREVIEW, [color="teal"]OLECMDEXECOPT[/color].OLECMDEXECOPT_DODEFAULT, [color="blue"]ref [/color]pvaIn, [color="blue"]ref [/color]pvaOut);</pre><div></div><p></p><p> </p><p>
To show the "<strong>Page Setup</strong>" dialog...</p><p>
</p><pre class="ipsCode">
[color="#teal"]IWebBrowser2 [/color]browser = ([color="teal"]IWebBrowser2[/color])webBrowser1.ActiveXInstance;
[color="blue"]object [/color]pvaIn = [color="teal"]Missing[/color].Value;
[color="blue"]object [/color]pvaOut = [color="teal"]Missing[/color].Value;
browser.ExecWB([color="teal"]OLECMDID[/color].OLECMDID_PAGESETUP, [color="teal"]OLECMDEXECOPT[/color].OLECMDEXECOPT_DODEFAULT, [color="blue"]ref [/color]pvaIn, [color="blue"]ref [/color]pvaOut);</pre><div></div><p></p><p> </p><p> </p><p>
To <strong>Print </strong>straight away, without prompting the user:</p><p>
</p><pre class="ipsCode">
[color="#teal"]IWebBrowser2 [/color]browser = ([color="teal"]IWebBrowser2[/color])webBrowser1.ActiveXInstance;
[color="blue"]object [/color]pvaIn = [color="teal"]Missing[/color].Value;
[color="blue"]object [/color]pvaOut = [color="teal"]Missing[/color].Value;
browser.ExecWB([color="teal"]OLECMDID[/color].OLECMDID_PRINT, [color="teal"]OLECMDEXECOPT[/color].OLECMDEXECOPT_DONTPROMPTUSER, [color="blue"]ref [/color]pvaIn, [color="blue"]ref [/color]pvaOut);</pre><div></div><p></p><p> </p><p>
(The first three lines are same every time, it's only the last line that's different).</p>]]></description><guid isPermaLink="false">477</guid><pubDate>Mon, 11 Apr 2011 12:06:25 +0000</pubDate></item><item><title>Getting a list of tables in an Access database (C#)</title><link>https://www.edugeek.net/blogs/entry/452-getting-a-list-of-tables-in-an-access-database-c/</link><description><![CDATA[<p>Posting this code so that I can remember it/ and in case anyone else finds it useful.</p><p> </p><p>
First open the database</p><p>
</p><pre class="ipsCode">[color="blue"]string [/color]constr = [color="#8b0000"]@"Provider=Microsoft.Jet.OLEDB.4.0;Data source=database.mdb"[/color];
[color="teal"]OleDbConnection [/color]con = [color="blue"]new [/color][color="teal"]OleDbConnection[/color](constr);
con.Open();</pre><div></div><p></p><p>
<strong>con.GetSchema()</strong> will return a list of collections in the database. </p><p> </p><p>
</p><pre class="ipsCode">CollectionName        NumberOfRestrictions NumberOfIdentifierParts
--------------------- -------------------- -----------------------
MetaDataCollections            0                    0
DataSourceInformation          0                    0
DataTypes                      0                    0
Restrictions                   0                    0
ReservedWords                  0                    0
Columns                        4                    4
Indexes                        5                    4
Procedures                     4                    3
Tables                         4                    3
Views                          3                    3</pre><div></div><p></p><p> </p><p>
The <strong>Tables </strong>collection contains the information we want, so call <strong>con.GetSchema("Tables")</strong>.</p><p> </p><p>
</p><pre class="ipsCode">

TABLE_CATALOG  TABLE_SCHEMA           TABLE_NAME         TABLE_TYPE  TABLE_GUID DESCRIPTION TABLE_PROPID   DATE_CREATED    DATE_MODIFIED
-------------- ------------- --------------------------- ----------- ---------- ----------- ------------ ---------------- ---------------
                            clschk                      TABLE                                           29/12/2010 09:20 29/12/2010 09:20
                            coursedesc                  TABLE                                           29/12/2010 09:20 10/01/2011 09:00
                            MSysAccessStorage           ACCESS TABLE                                    29/12/2010 09:30 29/12/2010 09:30
                            MSysACEs                    SYSTEM TABLE                                    29/12/2010 09:20 29/12/2010 09:20
                            MSysNavPaneGroupCategories  ACCESS TABLE                                    29/12/2010 09:30 29/12/2010 09:30
                            MSysNavPaneGroups           ACCESS TABLE                                    29/12/2010 09:30 29/12/2010 09:30
                            MSysNavPaneGroupToObjects   ACCESS TABLE                                    29/12/2010 09:30 29/12/2010 09:30
                            MSysNavPaneObjectIDs        ACCESS TABLE                                    29/12/2010 09:30 29/12/2010 09:30
                            MSysObjects                 SYSTEM TABLE                                    29/12/2010 09:20 29/12/2010 09:20
                            MSysQueries                 SYSTEM TABLE                                    29/12/2010 09:20 29/12/2010 09:20
                            MSysRelationships           SYSTEM TABLE                                    29/12/2010 09:20 29/12/2010 09:20
                            sessioninfo                 TABLE                                           29/12/2010 09:20 29/12/2010 09:20
                            y11_subjectpred             TABLE                                           29/12/2010 09:20 29/12/2010 11:50
                            y11_tutorltnopro            TABLE                                           29/12/2010 09:20 29/12/2010 09:20
</pre><div></div><p></p><p> </p><p>
All of the user-created tables have a TABLE_TYPE of "TABLE".</p><p> </p><p>
The following code puts them into a list:</p><p> </p><p>
</p><pre class="ipsCode">[color="teal"]List[/color]&lt;[color="blue"]string[/color]&gt; tables = [color="blue"]new [/color][color="teal"]List[/color]&lt;[color="blue"]string[/color]&gt;();
[color="blue"]foreach [/color]([color="teal"]DataRow [/color]r in con.GetSchema([color="#8b0000"]"Tables"[/color]).Select([color="#8b0000"]"TABLE_TYPE = 'TABLE'"[/color]))
   tables.Add(r[[color="#8b0000"]"TABLE_NAME"[/color]].ToString());</pre><div></div><p></p>]]></description><guid isPermaLink="false">452</guid><pubDate>Fri, 04 Mar 2011 11:13:07 +0000</pubDate></item></channel></rss>
