我正在尝试创建一个后退按钮但是使用超链接它只是带我到上一页并最终循环...例如,如果我有幻灯片1,其中有幻灯片3,4和5的链接,然后幻灯片3链接到6&7.如果我目前正在使用幻灯片7并单击它,它会成功将我带回幻灯片3但是我想点击后退并结束幻灯片1而不是回到幻灯片7(希望我有一些意义!).
我认为我这样做的唯一方法是VBA可以有人给我一些关于创建后退按钮的最佳方法的建议吗?(我正在使用PowerPoint 2007)
我希望能够创建一个文本文件,让用户将其保存到自己的PC中.目前我必须这样做:
StreamWriter sw;
sw = File.CreateText("C:\\results.txt");
Run Code Online (Sandbox Code Playgroud)
哪个obv保存在Web服务器上但是如何用链接到自己的计算机替换该字符串?我看了SaveFileDialog,但它似乎只适用于Windows Forms而不是ASP站点,有什么建议吗?
提前致谢
我希望在工作簿完成打开后运行VBA宏.我尝试使用workbook_open,但这在工作簿完成打开之前运行.这对我不起作用,因为我需要像这样循环遍历每张纸...
Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
'do stuff on each sheet
Next ws
End Sub
Run Code Online (Sandbox Code Playgroud)
有没有人知道是否有一个事件在工作簿完成后才会运行?或者就如何实现这一目标提出任何其他建议?
我已经设置了一个ADAM实例并添加了一些测试用户.从c#我可以使用Windows帐户绑定到ADAM,但我无法使用其中一个ADAM用户进行绑定.(我可以成功绑定ldp中的adam用户)我确保通过将msDS-UserAccountDisabled属性设置为false来启用用户.当我与我的Windows帐户绑定时,我可以成功搜索并恢复ADAM用户的属性,但我仍在努力验证它们,当我尝试使用ADAM用户帐户绑定时,我收到错误:
错误:System.Runtime.InteropServices.COMException(0x8007052E):登录失败:未知的用户名或密码错误.在System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
这是我正在使用的代码:
string userName = txtUserName.Text;
string password = txtPassword.Text;
string ADConnectionString = "LDAP://localhost:389/CN=sandbox,DC=ITOrg";
DirectoryEntry entry = new DirectoryEntry(ADConnectionString);
entry.Username = "myComputer\\Administrator";
entry.Password = "myPassword";
try
{
DirectorySearcher searcher = new DirectorySearcher(entry);
searcher.Filter = "(&(objectClass=user)(CN=" + userName + "))";
SearchResultCollection result = searcher.FindAll();
if (result.Count > 0)
{
//bind with simple bind
using (DirectoryEntry de = new DirectoryEntry(result[0].Path, userName, password,AuthenticationTypes.None))
{
if (de.Guid != null) // this is the line where it dies
{
Label1.Text = "Successfully authenticated"; …Run Code Online (Sandbox Code Playgroud)