Results 1 to 5 of 5

Thread: Embed file pdf inside...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2015
    Posts
    209

    Embed file pdf inside...

    Hi,

    Is possible embed file pdf inside a program?

    If so, what better way to do that?

    I have this conde in a button, but only open a pdf file

    Code:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            OpenFileDialog1.Filter = "PDF Files |*.pdf"
            If OpenFileDialog1.ShowDialog = DialogResult.OK Then
    
                AxAcroPDF1.src = OpenFileDialog1.FileName
    
            End If
        End Sub
    Thks a lot

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2015
    Posts
    209

    Re: Embed file pdf inside...

    Hi,

    I try use this code but i dont understand where is my mistake :

    Name:  1.jpg
Views: 70
Size:  25.4 KB

    Help,

    Thks,

    Cachado

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2015
    Posts
    209

    Re: Embed file pdf inside...

    Already fx that error, i add the resouce manually in the files Resources.Designer.vb and Resources.resx.

    For now have another error:

    Code:
     My.Resources.Procedimento_inventario.FileSave(FileName)
    'FileSave' is not a member of 'System.Array'.

    Help?

    Regards,
    Cachado
    Last edited by jcachado; Nov 17th, 2015 at 08:38 PM.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2015
    Posts
    209

    Re: Embed file pdf inside...

    Quote Originally Posted by jcachado View Post
    Already fx that error, i add the resouce manually in the files Resources.Designer.vb and Resources.resx.

    For now have another error:

    Code:
     My.Resources.Procedimento_inventario.FileSave(FileName)
    'FileSave' is not a member of 'System.Array'.

    Help?

    Regards,
    Cachado
    Any help please.

    Thks a lot,

    Cachado

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2015
    Posts
    209

    Re: Embed file pdf inside...

    I solves this with this sample code:

    Code:
     Me.CenterToScreen()
            WebBrowser1.Anchor = CType(AnchorStyles.Bottom + AnchorStyles.Left + AnchorStyles.Right + AnchorStyles.Top, AnchorStyles)
            WebBrowser1.Navigate("D:\Procedimento_inventario.pdf")
    Not Embed file pdf but for now its ok,

    Cachado

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width