2015年9月9日 星期三
2015年9月3日 星期四
如何對欄位和表格做定義
方法一:針對各欄位和整個表格定義
1.選擇需要的資料
2.點選「公式」頁籤中的「從選取範圍建立」
3.選擇相對應的資料
方法二:只定義整個表格
1.選擇需要的資料
2.點選「常用」頁籤中的「格式化為表格」,然後選擇任一個格式
3.會出現以下的詢問,然後按下確定
4.上方工具區會出現「設計」頁籤,然後就可以修改左邊的表格名稱
5.回到「公式」頁籤中,點選「名稱管理員」(方法一的第2點),即可看到上個步驟的定義名稱
註:刪除名稱管理員中針對”表格”的定義
1.將指標focus在該表格的任一儲存格,上方工具區便會出現「設計」頁籤
2.點選「設計」頁籤中的「轉換為範圍」,在跳出的視窗點選確定。
3.表格就被轉換成一般表格(沒有定義名稱),此時「設計」頁籤會消失,且「公式」中的「名稱管理員」裡的該表格名稱也會消失。
PowerPivot 現有連線加入新資料表
2010年9月8日 星期三
C# 取得本機Mac Address
取得本機MAC Address, 格式為 Dictionary<MAC名稱, MAC位址)
private Dictionary<string, string> GetMacAddress()
{
Dictionary<string, string> dicMAC = new Dictionary<string, string>();
StringBuilder strbui = new StringBuilder();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface adapter in nics)
{
PhysicalAddress address = adapter.GetPhysicalAddress();
byte[] bytes = address.GetAddressBytes();
for (int i = 0; i < bytes.Length; i++)
{
// Display the physical address in hexadecimal.
strbui.AppendFormat("{0}", bytes[i].ToString("X2"));
// Insert a hyphen after each byte, unless we are at the end of the address.
if (i != bytes.Length - 1)
{
strbui.Append("-");
}
else
{
dicMAC.Add(adapter.Name, strbui.ToString());
strbui = new StringBuilder();
}
}
}
return dicMAC;
}
private Dictionary<string, string> GetMacAddress()
{
Dictionary<string, string> dicMAC = new Dictionary<string, string>();
StringBuilder strbui = new StringBuilder();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface adapter in nics)
{
PhysicalAddress address = adapter.GetPhysicalAddress();
byte[] bytes = address.GetAddressBytes();
for (int i = 0; i < bytes.Length; i++)
{
// Display the physical address in hexadecimal.
strbui.AppendFormat("{0}", bytes[i].ToString("X2"));
// Insert a hyphen after each byte, unless we are at the end of the address.
if (i != bytes.Length - 1)
{
strbui.Append("-");
}
else
{
dicMAC.Add(adapter.Name, strbui.ToString());
strbui = new StringBuilder();
}
}
}
return dicMAC;
}
訂閱:
文章 (Atom)












