Click here to Skip to main content
15,910,471 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionaccess denied error Pin
alpdoruk24-Apr-07 21:38
alpdoruk24-Apr-07 21:38 
AnswerRe: access denied error Pin
Dave Kreskowiak25-Apr-07 3:59
mveDave Kreskowiak25-Apr-07 3:59 
AnswerRe: access denied error Pin
alpdoruk27-Apr-07 1:23
alpdoruk27-Apr-07 1:23 
Questionhow to specify location of saving file NETCF Pin
laurensia inge24-Apr-07 21:17
laurensia inge24-Apr-07 21:17 
AnswerRe: how to specify location of saving file NETCF Pin
Suhail Shahab24-Apr-07 21:33
Suhail Shahab24-Apr-07 21:33 
GeneralRe: how to specify location of saving file NETCF Pin
Dave Kreskowiak25-Apr-07 3:51
mveDave Kreskowiak25-Apr-07 3:51 
GeneralRe: how to specify location of saving file NETCF Pin
Suhail Shahab25-Apr-07 19:08
Suhail Shahab25-Apr-07 19:08 
GeneralRe: how to specify location of saving file NETCF Pin
Suhail Shahab25-Apr-07 19:15
Suhail Shahab25-Apr-07 19:15 
Wirte this code in button event click event and when user click the button the a save dialog will be open and user can easily save the file.

Function saveCopyLocal(ByVal FSaveURL)
'strSrcFileNmae=source file name with relative path
Dim strSrcFileName As String = "\folderName\" + FSaveURL + ".txt"
'strTargetName=name of file from which name u like to save and user can 'aslso change the name
Dim strTargetName As String = "Rapid_reporting_Pilot.txt"
' Dim sw As System.IO.StreamWriter
' sw = New System.IO.StreamWriter(Server.MapPath(strSrcFileName))
' sw.Close()

Try

' Dim fs As System.IO.FileStream = Nothing
Dim fs As System.IO.FileStream

fs = System.IO.File.Open(Server.MapPath(strSrcFileName), System.IO.FileMode.Open)
Dim btFile(fs.Length) As Byte
fs.Read(btFile, 0, fs.Length)
fs.Close()
With Response
.AddHeader("Content-disposition", "attachment;filename=" & strTargetName)
.ContentType = "text/txt"
.BinaryWrite(btFile)
.End()
End With

Catch ex As Exception

End Try
End Function

GeneralRe: how to specify location of saving file NETCF Pin
Dave Kreskowiak26-Apr-07 13:41
mveDave Kreskowiak26-Apr-07 13:41 
GeneralRe: how to specify location of saving file NETCF Pin
laurensia inge26-Apr-07 22:36
laurensia inge26-Apr-07 22:36 
Questionhow we hide destop and task Bar in asp.net and vb.net Pin
Suhail Shahab24-Apr-07 21:12
Suhail Shahab24-Apr-07 21:12 
AnswerRe: how we hide destop and task Bar in asp.net and vb.net Pin
Sathesh Sakthivel25-Apr-07 0:23
Sathesh Sakthivel25-Apr-07 0:23 
GeneralRe: how we hide destop and task Bar in asp.net and vb.net Pin
Suhail Shahab25-Apr-07 19:27
Suhail Shahab25-Apr-07 19:27 
AnswerRe: how we hide destop and task Bar in asp.net and vb.net Pin
Dave Kreskowiak25-Apr-07 3:49
mveDave Kreskowiak25-Apr-07 3:49 
GeneralRe: how we hide destop and task Bar in asp.net and vb.net Pin
Suhail Shahab25-Apr-07 19:20
Suhail Shahab25-Apr-07 19:20 
GeneralRe: how we hide destop and task Bar in asp.net and vb.net Pin
Dave Kreskowiak26-Apr-07 13:42
mveDave Kreskowiak26-Apr-07 13:42 
QuestionReports to EXCEL Pin
venkata lakshmi prasanna24-Apr-07 20:04
venkata lakshmi prasanna24-Apr-07 20:04 
QuestionSetting Wrap text for a label in VB.Net Pin
venkata lakshmi prasanna24-Apr-07 20:02
venkata lakshmi prasanna24-Apr-07 20:02 
AnswerRe: Setting Wrap text for a label in VB.Net Pin
MatrixCoder24-Apr-07 20:23
MatrixCoder24-Apr-07 20:23 
AnswerRe: Setting Wrap text for a label in VB.Net Pin
Dave Kreskowiak25-Apr-07 3:46
mveDave Kreskowiak25-Apr-07 3:46 
QuestionSerial port configuration dialog [modified] Pin
Nick Alexeev24-Apr-07 16:22
professionalNick Alexeev24-Apr-07 16:22 
AnswerRe: Serial port configuration dialog Pin
Dave Kreskowiak24-Apr-07 18:02
mveDave Kreskowiak24-Apr-07 18:02 
NewsRe: Serial port configuration dialog Pin
Nick Alexeev5-Jun-07 10:22
professionalNick Alexeev5-Jun-07 10:22 
QuestionAdding proxies to my internet browser Pin
itsryan24-Apr-07 15:59
itsryan24-Apr-07 15:59 
AnswerRe: Adding proxies to my internet browser Pin
Dave Kreskowiak24-Apr-07 18:01
mveDave Kreskowiak24-Apr-07 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.