private void btnVer_Click(object sender, RoutedEventArgs e)
 {
    mialejandria.mifaro.VisoresDocumentos.VentanaDocumentos vi = new mialejandria.mifaro.VisoresDocumentos.VentanaDocumentos( CodigoReferencia);
     visorPDF v = new visorPDF();
     v.axAcroPDF1.LoadFile(ruta);
     v.axAcroPDF1.src = ruta;
     v.axAcroPDF1.setShowToolbar(false);
     v.axAcroPDF1.setView("FitH");
     v.axAcroPDF1.setShowScrollbars(true);
     v.axAcroPDF1.setLayoutMode("SinglePage");
     v.axAcroPDF1.Show();
     vi.windowsFormsHost1.Child = v;
     vi.Show();
     
 }
 void VisorPdfWpf_Loaded(object sender, RoutedEventArgs e)
 {
     visorPDF v = new visorPDF();
     v.axAcroPDF1.LoadFile(ruta);
     v.axAcroPDF1.src = ruta;
     v.axAcroPDF1.setShowToolbar(false);
     v.axAcroPDF1.setView("FitH");
     v.axAcroPDF1.setShowScrollbars(false);
     v.axAcroPDF1.setLayoutMode("SinglePage");
     v.axAcroPDF1.Show();
     windowsFormsHost1.Child = v;
     
     this.Height = 250;
     this.Width = 170;
 }