Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWhat do you think visual data computing? Pin
David venewald4-Mar-13 22:57
David venewald4-Mar-13 22:57 
AnswerRe: What do you think visual data computing? Pin
Richard MacCutchan4-Mar-13 23:26
mveRichard MacCutchan4-Mar-13 23:26 
GeneralRe: What do you think visual data computing? Pin
David venewald5-Mar-13 14:32
David venewald5-Mar-13 14:32 
GeneralRe: What do you think visual data computing? Pin
Richard MacCutchan5-Mar-13 22:18
mveRichard MacCutchan5-Mar-13 22:18 
AnswerRe: What do you think visual data computing? Pin
Dave Kreskowiak5-Mar-13 1:19
mveDave Kreskowiak5-Mar-13 1:19 
GeneralRe: What do you think visual data computing? Pin
David venewald5-Mar-13 14:23
David venewald5-Mar-13 14:23 
GeneralRe: What do you think visual data computing? Pin
Dave Kreskowiak5-Mar-13 15:56
mveDave Kreskowiak5-Mar-13 15:56 
QuestionHow to Save,Retreive and modify .pdf files in Sql SERVER 2005 using VB.net control Adobe Pdf Viewer Pin
J.Mañago4-Mar-13 16:37
J.Mañago4-Mar-13 16:37 
Hi guys,

i would like to ask on how to use the control Adobe Pdf Viewer in Visual basic 2010 in terms of Saving ,Retreiving and modifying the pdf file displayed on it through sql server 2005 database.

I can do this with image using picture box but how about in pdf files using Adobe Pdf Viewer?


i have a code for saving and retrieving my image
any modification to my code to solve my problem would be appreciated ..


VB
Imports System.IO
Module ModReadWriteImage

    Public Sub writeImage(ByVal picbox As PictureBox, ByVal sql As String)

        Dim imageBinary = Nothing
        Dim myImage As Image = picbox.Image
        'Image to byte[]
        Dim imgMemoryStream As MemoryStream = New MemoryStream()
        Dim imgByteArray As Byte() = Nothing
        myImage.Save(imgMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)
        'converts the image to an array of byte :D
        imgByteArray = imgMemoryStream.GetBuffer()
        'calls the save image function ^_^
        saveImage(imgByteArray, sql)

    End Sub

    Public Function readImages(ByVal pic As Byte()) As Image

        Dim imgMemoryStream As MemoryStream = New MemoryStream()
        Dim imgByteArray As Byte() = Nothing

        Dim myimage As Image
        imgByteArray = pic
        'convert the binary data and return it as an image ;D

        imgMemoryStream = New IO.MemoryStream(imgByteArray)
        myimage = Drawing.Image.FromStream(imgMemoryStream)

        Return myimage

    End Function


End Module



Many Thanks.
AnswerRe: How to Save,Retreive and modify .pdf files in Sql SERVER 2005 using VB.net control Adobe Pdf Viewer Pin
Dave Kreskowiak5-Mar-13 1:22
mveDave Kreskowiak5-Mar-13 1:22 
GeneralRe: How to Save,Retreive and modify .pdf files in Sql SERVER 2005 using VB.net control Adobe Pdf Viewer Pin
J.Mañago6-Mar-13 22:58
J.Mañago6-Mar-13 22:58 
GeneralRe: How to Save,Retreive and modify .pdf files in Sql SERVER 2005 using VB.net control Adobe Pdf Viewer Pin
Dave Kreskowiak7-Mar-13 1:57
mveDave Kreskowiak7-Mar-13 1:57 
QuestionImplicit conversion operator(s) Pin
maxrock174-Mar-13 10:53
maxrock174-Mar-13 10:53 
AnswerRe: Implicit conversion operator(s) Pin
Dave Kreskowiak5-Mar-13 2:24
mveDave Kreskowiak5-Mar-13 2:24 
QuestionVBScript Recordset Caching Pin
Feurich4-Mar-13 5:19
Feurich4-Mar-13 5:19 
AnswerRe: VBScript Recordset Caching Pin
Dave Kreskowiak4-Mar-13 7:38
mveDave Kreskowiak4-Mar-13 7:38 
GeneralRe: VBScript Recordset Caching Pin
Feurich4-Mar-13 7:45
Feurich4-Mar-13 7:45 
GeneralRe: VBScript Recordset Caching Pin
Dave Kreskowiak4-Mar-13 8:19
mveDave Kreskowiak4-Mar-13 8:19 
GeneralRe: VBScript Recordset Caching Pin
Feurich4-Mar-13 9:01
Feurich4-Mar-13 9:01 
GeneralRe: VBScript Recordset Caching Pin
Dave Kreskowiak4-Mar-13 10:16
mveDave Kreskowiak4-Mar-13 10:16 
GeneralRe: VBScript Recordset Caching Pin
Dave Kreskowiak4-Mar-13 12:48
mveDave Kreskowiak4-Mar-13 12:48 
GeneralRe: VBScript Recordset Caching Pin
Feurich4-Mar-13 20:17
Feurich4-Mar-13 20:17 
Questionarduino uno+Visual basic 6.0 Pin
arunsachin3-Mar-13 22:56
arunsachin3-Mar-13 22:56 
AnswerRe: arduino uno+Visual basic 6.0 Pin
Dave Kreskowiak4-Mar-13 1:30
mveDave Kreskowiak4-Mar-13 1:30 
AnswerRe: arduino uno+Visual basic 6.0 Pin
Eddy Vluggen4-Mar-13 8:50
professionalEddy Vluggen4-Mar-13 8:50 
Questioncalling OSK.exe from Vb.6 Pin
lovelushaha2-Mar-13 20:20
lovelushaha2-Mar-13 20:20 

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.