Let me start with I couldn't find a better way to do this.
I am prefilling a outlook email with some dynamically gen'ed tabular data. The preferred method would be to actually create a populate the table. Failing that i create a mailto: string and then send that to Process.Start(). I am padding the text to get close to table'ed but would like to know if there is a way to actually do this.
The tabs are being converted into spaces, which is messing with my layout.
Code so far:
As icky as it would be, if it was possible I would sendKeys the table creation, and data population.
Thanks in advance,
David
If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
I am prefilling a outlook email with some dynamically gen'ed tabular data. The preferred method would be to actually create a populate the table. Failing that i create a mailto: string and then send that to Process.Start(). I am padding the text to get close to table'ed but would like to know if there is a way to actually do this.
The tabs are being converted into spaces, which is messing with my layout.
Code so far:
Code:
Dim strEmail As String = "mailto:?"
With dgvData.Rows(0)
strEmail += "SUBJECT=Information for " + .Cells("Name").Value.ToString
strEmail += "&BODY="
'...
For inti As Integer = 1 To intAirline
strEmail += "%09" '%09 is the symbol for tab
Next
'...
Process.Start(strEmail)
lblMessage.Text = "Email Generated"
As icky as it would be, if it was possible I would sendKeys the table creation, and data population.
Thanks in advance,
David
If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]