vb.net

Save file as PDF/A using Office.Interop.Excel

二次信任 提交于 2021-02-07 09:20:40
问题 How can I export an Excel spreadsheet to PDF/ A (ISO 19005-1)? EDIT: I'm asking for PDF/A, and not plain old PDF 1.5 as it exports by default. I've even emphasized the A in my original question. I can already export Word and PowerPoint documents to PDF/A, using the ExportAsFixedFormat() function, since the Word and PowerPoint functions both have an optional UseISO19005_1 parameter, but the Excel version is very different, and is missing lots of parameters. I can't seem to find any way to

Save file as PDF/A using Office.Interop.Excel

淺唱寂寞╮ 提交于 2021-02-07 09:20:31
问题 How can I export an Excel spreadsheet to PDF/ A (ISO 19005-1)? EDIT: I'm asking for PDF/A, and not plain old PDF 1.5 as it exports by default. I've even emphasized the A in my original question. I can already export Word and PowerPoint documents to PDF/A, using the ExportAsFixedFormat() function, since the Word and PowerPoint functions both have an optional UseISO19005_1 parameter, but the Excel version is very different, and is missing lots of parameters. I can't seem to find any way to

Upload file to SFTP server using VB.NET

ぃ、小莉子 提交于 2021-02-07 08:01:42
问题 I need to upload a file to SFTP server. I am using VB.NET 2008. How can I upload a simple .csv file from my local computer to SFTP server using port number, user name and password, etc? Thanks in advance. 回答1: A commonly used open source SFTP library for .NET is SSH.NET. With it, you can use a code like this: Dim client As SftpClient = New SftpClient("example.com", "username", "password") client.Connect() Using stream As Stream = File.OpenRead("C:\local\path\some.csv") client.UploadFile

Upload file to SFTP server using VB.NET

大憨熊 提交于 2021-02-07 08:00:25
问题 I need to upload a file to SFTP server. I am using VB.NET 2008. How can I upload a simple .csv file from my local computer to SFTP server using port number, user name and password, etc? Thanks in advance. 回答1: A commonly used open source SFTP library for .NET is SSH.NET. With it, you can use a code like this: Dim client As SftpClient = New SftpClient("example.com", "username", "password") client.Connect() Using stream As Stream = File.OpenRead("C:\local\path\some.csv") client.UploadFile

How to change textbox border color and width in winforms?

我是研究僧i 提交于 2021-02-07 07:27:20
问题 I would like to know how do I change the border color and border width of textbox as something shown below If it is mouse hover I need to display one colour and on mouse down I need to display another colour. Can anyone explain me the detailed process with the source if available. 回答1: You could do the following: Place the TextBox inside a Panel Give the panel 1 pixel padding Set the text dock to Fill Make the text box to have no border Then, handle mouse events on the text box, switch the

How to change textbox border color and width in winforms?

时间秒杀一切 提交于 2021-02-07 07:27:18
问题 I would like to know how do I change the border color and border width of textbox as something shown below If it is mouse hover I need to display one colour and on mouse down I need to display another colour. Can anyone explain me the detailed process with the source if available. 回答1: You could do the following: Place the TextBox inside a Panel Give the panel 1 pixel padding Set the text dock to Fill Make the text box to have no border Then, handle mouse events on the text box, switch the

Is there UI-independent Point struct in .NET?

耗尽温柔 提交于 2021-02-07 04:42:24
问题 I know several Point structs in .NET: System.Drawing.Point , System.Windows.Point , Sys.UI.Point , but all of them are in high-level UI libraries (GDI+, WPF, AJAX). I need a Point struct for calculations in my class library which I don't want to tie to any specific UI technology. Is there any UI-independent Point struct in .NET? Or I will need to create it myself? That is simple, I know, but sounds like reinventing the wheel. 回答1: Reinvent the wheel. It will run smoother! Really, if it's just

how to set minimum limit of a textbox vb.net

雨燕双飞 提交于 2021-02-07 04:41:11
问题 I need to set a minimum length for a password that can be used in a textbox and then set a label which will say if it meets the minimum number of characters required. I know how to set the limit of characters, what I can't do is the part where it will show in a label as soon as I leave the textbox. I was thinking I need to use an event, like maybe Leave or LostFocus, but it's not working. Please help :( 回答1: Ok, There are plenty of ways to do what you want to achieve. I personally like to a

how to set minimum limit of a textbox vb.net

泄露秘密 提交于 2021-02-07 04:41:06
问题 I need to set a minimum length for a password that can be used in a textbox and then set a label which will say if it meets the minimum number of characters required. I know how to set the limit of characters, what I can't do is the part where it will show in a label as soon as I leave the textbox. I was thinking I need to use an event, like maybe Leave or LostFocus, but it's not working. Please help :( 回答1: Ok, There are plenty of ways to do what you want to achieve. I personally like to a

How can to stop the “ding” sound while pressing enter

放肆的年华 提交于 2021-02-07 04:40:05
问题 I need to stop the "ding" sound while pressing enter but I use it to send a message. There is my code: Private Sub textbox2_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) _ Handles TextBox2.KeyDown If e.KeyCode = Keys.Enter Then TextBox3.ReadOnly = True If TextBox2.Text = ("") Then Else Dim PostData = "token=" & TextBox1.Text & "&msg=" & TextBox3.Text & ": " & TextBox2.Text Dim request As WebRequest = WebRequest.Create("http://url.com/msg.php") request.Method = "POST" Dim