Condividi:        

Compilare un campo in pagina web da una maschera di Access

Vuoi potenziare i tuoi documenti Word? Non sai come si fa una macro in Excel? Devi creare una presentazione in PowerPoint?
Oppure sei passato a OpenOffice e non sei sicuro di come lavorare al meglio?

Moderatori: Anthony47, Flash30005

Compilare un campo in pagina web da una maschera di Access

Postdi Marco9955 » 10/05/16 13:00

Buongiorno,
quello che vorrei fare, come già detto nel titolo, è compilare un determinato campo in una pagina web con il dato che è presente nella maschera... faccio un esempio per essere più esplicito.
Ho il database in formato access con tutti i dati di un cliente, mi viene richiesto di inviare tramite inserimento online, alcuni dati del mio cliente:

per esempio pagina web: http://www.pippo.it/ener/Inserimento.aspx
campo pagina web che è da compilare inserendo il valore della potenza
<input name="ctl00$ContentPlaceHolder1$txtKw" type="text" maxlength="4" id="ContentPlaceHolder1_txtKw" style="width:40px;" />

campo maschera in cui c'è il valore della potenza da copiare: [Maschere]![Dati]![PotTermica]

non mi interessa che mi apra la pagina web anzi meglio già aperta da Firefox.

il mio roblema è che non so' proprio da dove cominciare :-? un aiutino per muovere i primi passi..
Marco9955
Newbie
 
Post: 3
Iscritto il: 10/05/16 12:25

Sponsor
 

Re: Compilare un campo in pagina web da una maschera di Acce

Postdi Anthony47 » 10/05/16 21:35

Ciao Marco9955, benvenuto nel forum.
Purtroppo queste automazioni sono possibili solo lavorando sul codice sorgente del sito.
Quindi dovresti indicare l'url su cui devi lavorare e si vedra'.

Altrimenti prova a guardare le tante automazioni sull'argomento; es
viewtopic.php?f=26&t=106766
viewtopic.php?f=26&t=105843
viewtopic.php?t=101069
viewtopic.php?t=100441
viewtopic.php?t=100428
viewtopic.php?t=97268#p558449
viewtopic.php?t=97910
(molte saranno simili)

In generale, lavorando sul codice sorgente, si tratta di identificare il campo da popolare e il bottone da cliccare, e lavorare su questi componenti usando Metodi e Proprieta' rese disponibili dalla libreria mshtml.tlb, corrispondente alla voce Microsoft html object library dell' editor delle macro.

Mi rendo conto ora che tu parli di Access, mentre le mie poche abilita' sono concentrate sul vba per Excel, un po' di word e outlook; quindi qualsiasi aiuto io possa dare (noto l'url) sara' sempre limitato.

Ciao
Avatar utente
Anthony47
Moderatore
 
Post: 19196
Iscritto il: 21/03/06 16:03
Località: Ivrea

Re: Compilare un campo in pagina web da una maschera di Acce

Postdi Marco9955 » 11/05/16 14:58

grazie Anthony47 per la risposta,
ho dato un'ochiata ai link che mi hai postato ma parlano tutti di importare da web mentre la mia necessità è il contrario...
Il sito in questione è ad eccesso in area riservata ecco perchè avevo copiato la stringa del codice del campo dell'esempio.

cerco di spiegare i passaggi che ho fatto..
aperto la pagina da firefox ho cliccato "visualizza sorgente pagina"
ho copiato tutto il codice e ho ricreato il file .aspx
l'ho aperto sul mio pc e ho guardato come era strutturato...(foto)

Immagine

ho caricato lo script sul web, poi aperto da firefox ho provato a scriverci dentro per vedere se era utilizzabile per fare le prove...

Immagine

e funziona! Quindi a questo punto dalla mia maschera di access che è già compilata devo prendere i dati...

Immagine

e copiarli nei relativi campi dalla pagina web.
Tasti di invio, conferma, etc... non mi interessano, apro la pagina web, apro access, eseguo la macro, si compila la pagina web, controllo i dati, clicco manualmente il pulsante avanti o indietro in base alla necesità...
eviterei di automatizzarlo completamente.

spero di aver dato notizie utili :undecided: :undecided:
Marco9955
Newbie
 
Post: 3
Iscritto il: 10/05/16 12:25

Re: Compilare un campo in pagina web da una maschera di Acce

Postdi Anthony47 » 11/05/16 20:06

Le immagini sono illegibili, quindi aiutano relativamente...

In questi altri esempi da vba si compilano dei campi su form:
viewtopic.php?t=93123#p532744
viewtopic.php?f=26&t=97767
viewtopic.php?f=26&t=97767&p=563602#p563602

Rimane il concetto che bisogna identificare nel sorgente della pagina i nomi degli oggetti coinvolti, per poterli indirizzare correttamente, ma per i dettagli bisogna disporre del sorgente.
Gli elementi possono essere indirizzati in vario modo, come forse hai notato negli esempi; guardando un pezzo del codice sorgente, e' possibile che il valore della potenza possa essere introdotto tramite qualcosa del tipo
Codice: Seleziona tutto
IE.Document.GetElementById("ContentPlaceHolder1_txtKw").Value = IlValoreLettoInAccess

Ma siccome immagino che sia all'interno di una form non so se funzionera' o se invece bisogna prima selezionare la form e poi accedere ai suoi elementi; es:
Codice: Seleziona tutto
IE.Document.forms(1).elements(0).Value = "PrimoValore"
IE.Document.forms(1).elements(1).Checked = True     'ipotesi Checkbox
IE.Document.forms(1).elements(2).Value = "Secondo Valore"

Per funzionare, e' necessario che la sessione sia aperta dal vba in un "Oggetto Internet Explorer", come si vede negli esempi linkati.
Nel codice che ho scritto prima ho immaginato che l'oggetto sia denominato "IE".

Gli spezzoni di codice vanno intesi come "esempi di massima", giacche' solo dall'esame dal sorgente html della pagina web si possono determinare il tipo e i nomi degli oggetti coinvolti e quali "metodi" o "proprietà" essi supportano.

Ciao
Avatar utente
Anthony47
Moderatore
 
Post: 19196
Iscritto il: 21/03/06 16:03
Località: Ivrea

Re: Compilare un campo in pagina web da una maschera di Acce

Postdi Marco9955 » 13/05/16 15:26

Ho provato con i tuoi suggerimenti... ma prima di tutto ti copio il codice della pagina web:
Codice: Seleziona tutto

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
   Inserimento nuovo rapporto
</title>
    <style type="text/css">
        .style4
        {
    }
        .style5
        {
        }
        .style7
        {
        }
        .style9
        {
        }
        .style10
        {
            width: 231px;
        }
        .style11
        {
            width: 114px;
        }
        .style12
        {
        }
        .style13
        {
            width: 108px;
        }
        .style14
        {
        }
        .style15
        {
            width: 54px;
        }
        .style16
        {
            width: 163px;
        }
        .style17
        {
            width: 46px;
        }
        .style19
        {
            width: 207px;
        }
        .style20
        {
        }
        .style21
        {
        }
        .style22
        {
            width: 372px;
        }
        .style23
        {
        }
        .style25
        {
        }
        .style26
        {
            width: 325px;
        }
        .style28
        {
            height: 9px;
        }
        .style29
        {
            width: 96px;
        }
        .style31
        {
            width: 85px;
        }
        .style33
        {
        }
        .style34
        {
        }
        .style36
        {
            width: 252px;
        }
        .style37
        {
            width: 249px;
        }
        .style38
        {
            width: 152px;
        }
        .style39
        {
        }
        .style40
        {
            width: 170px;
        }
        .style42
        {
            width: 234px;
        }
        .style44
        {
            width: 217px;
        }
        .style45
        {
            width: 219px;
        }
        .style46
        {
            width: 81px;
        }
        .style47
        {
            width: 187px;
        }
        .style50
        {
            width: 131px;
        }
        .style52
        {
            width: 32px;
        }
        .style54
        {
            width: 77px;
        }
        .style56
        {
            width: 509px;
        }
        .style57
        {
            width: 137px;
            height: 68px;
        }
        .style58
        {
            width: 509px;
            height: 68px;
        }
        .style59
        {
            height: 68px;
        }
        .style60
        {
            width: 137px;
            height: 78px;
        }
        .style61
        {
            width: 509px;
            height: 78px;
        }
        .style62
        {
            height: 78px;
        }
        .style63
        {
            width: 3px;
        }
        .style64
        {
            height: 9px;
            width: 3px;
        }
        .style65
        {
            width: 137px;
        }
        .style66
        {
            width: 78px;
        }
        .style67
        {
            width: 154px;
        }
    </style>

    <style type="text/css">
      body {
      background-color: #f7f7f7;background-image: none;      }
        .style1
        {
            width: 60px;
        }
        .style2
        {
            width: 780px;
        }
        .style3
        {
            width: 223px;
        }
    </style>
</head>
<body >
<form method="post" action="./InserimentoRapporto.aspx" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnDummy')" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTk0NjAyMTcxNQ9kFgJmD2QWAgIDD2QWAgIJD2QWAmYPZBYEAgEPZBYCAgEPDxYCHgRUZXh0BRpVdGVudGUgOiBDb250cm9sIENhbG9yIHNybGRkAgMPZBYCAgMPZBYGAgEPZBYUAgsPEGRkFgBkAhEPEGRkFgBkAhkPEGRkFgBkAh8PEGRkFgBkAiUPEGRkFgBkAisPEGRkFgBkAjEPEGRkFgBkAjcPEGRkFgBkAj0PEGRkFgBkAkMPEGRkFgBkAgIPZBYQAjcPEGRkFgBkAj0PEGRkFgBkAkMPEGRkFgBkAkkPEGRkFgBkAk8PEGRkFgBkAlUPEGRkFgBkAlsPEGRkFgBkAmMPEGRkFgBkAgMPZBYCAh0PEGRkFgBkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYEBQ9jdGwwMCRidG5Mb2dvdXQFJWN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkYnRuQ2VyY2FQZHIFJmN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkYnRuSW5kaWV0cm81BSRjdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJGJ0bkF2YW50aTEFJGN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkTXVsdGlWaWV3MQ8PZGZk5WpcsnPqFXEZ2GQAoqqfthg7B0fEgzGytvQFsuEbOx0=" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="/WebResource.axd?d=2X5jWfHEpQwnCiLu0MWRpkAX3cnjn4kDDzlhtKXNcGFkDvfHl5h_4CCmSBJvmJRWSimPyThSIv_QZHDSDZQfnDYhkqlhdublEpUoTR_a03Q1&amp;t=635793099765829480" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=RMlFa8iexrT-UmpJHv1VZaCXual98lRYr0HkxsA5egi6P7M_vj7srXa7ExCDroHwFoTVID6fGNIMFqZ7oDrhJKqRAqTN_0jRf01iXGyZguw-BxgYtbce9Qzz0NeeETLHuhVDx-OnRRVXRYZdokaAF5x3KQjnMaVoyvKc6cFpVN01&amp;t=3f9850cf" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=dNGuDO0wqkwyn8mTXCLM02A8TRN9wj-xYW_mpRvK1y6hQcv1paJS9RE4AU0OLQc9HsYbsgwXGIwwFWX0hu5ixtfdVl8oJyrJHT9gtfQpY5Vz7RMiQpVU02RiZe9MqPYw4tQahKBSU-TilF6rdqhMnMijy2S3EHEFO5U0S8uEpRiBnRU1xq8MnjBdBjOup3KN0&amp;t=72e85ccd" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="/ScriptResource.axd?d=FmegP46Jxm6WvcaLgWWBMKprt_SW2Qxfl1vpIge0iIiudVk7B8Y3VzJekUeQn7b91Q2AyUbgKJYgjYIFAqKwBfme4pimUnnmljjPVO10agOlbppztF505nwe2hjxRnhamF6mLOOA2uWqE86kOYJcggL3b1YJragymSa45pXUVWAVq6TEKMKFP0XNW5fF15m00&amp;t=72e85ccd" type="text/javascript"></script>
<script src="/WebResource.axd?d=v7kYmwj73KiAPwX7aNVqqlBQE1-KQmsu-9bv6l8wis_kvGCJ78kvBUeKGN6k93iTQtB0FKQozo7M8tmX8fh79WUNI4UihRUOP_MXdoGxVLo1&amp;t=635793099765829480" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

<div class="aspNetHidden">

   <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="15338074" />
   <input type="hidden" name="__PREVIOUSPAGE" id="__PREVIOUSPAGE" value="4SMt94k36jMay3YRnuWTBlUvczKJS7_DSDI73zoTFSkVtPpXV9zcdw6gA8XeWC5eMjLTneZGFzDyieGwuycxKU0yqA4rDqeILvHoGZH7OlWGSlk9XnEapP5wz-evz6hJ0" />
   <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdACnWBSVjIVRCZ1yjaiXeW1BTm0cF6UJ36C8Ob8CzcS5DRJEGRjzO3gG8a0wdlVWrsyPsImZeulPoUFdMJozZZWtHBlJK+OgfPq49OzSTlJ4h94XfEybFWq4rnfE+O6kqs62umMG9krAzKl22v1MHtyjcUDT9nOU3KWsDv9JqbOTs3fMHEzMvHga+QRYtxwk7qYju/TVeFCCKWY4xFBS0RfhrYH2Qm6ZxyDsmJWF/vW/kwyy+9KHQwJIOlmT7xxd2GWwVaqjps3xW1uUBgaKn6qOfuBDVonQzsKAECautoet1mPElPx5xsfJ70hFN6H3YQ70QxkJmSYyjeT+RvhXL7sZ6B4FLN//LZ/Hj8HzqnqB+ulZwHKHrKUH5StPGis6FrzMCbgZcDnZ6oN8PRIk+F1nNOOlZV/qcYQoSEiMNQ6fuNpX7Jka1NRDFURHchwNbVR+jrcR66ciYZ804CWFO0pJmZbAFC9YMH/7P8CMYLm3E9BEn1XJTIEfG+Xn6gDb7HY4622dub2WyIxZ+kz1u8xvaI3PKT9aoCaw2DI3fO/n1dGIA6D8ivIoDe1kvzAgZmtRMDUXINv2Btjc9TgqfEebNdrAaUA/gArG/BPyna2RBKqZB5u2EwzWeOCqKWv5jdgV6A/kW8u7AXW7QcxDtS+XSqJqe4Odo6/nPfgZFs+kxa6fZeEfMg6B1qHl+7a4gyMIFUkpCMbcwv+R3Xt4QOD2yyjM7tHCKr1/UDOrOrdGgGZc5PMfEnPh5I+gM9wnz+4Ey5ylUSfDTfPthyCqxjH7KvzChEqb63EYsIMBpf2J78gS4kQ0MvQpBEZwf5Q4VseuVDjP2n/XI9PxpD+DvRi7M2iD5IcnLf2UX4FJGrV+4phLgZMxu7SYBPPudlvv+vJj6Q+Mp5PtlQrNl/0WuBjfL" />
</div>
    <table style="width: 900px">
        <tr>
            <td class="style1">&nbsp;
                </td>
            <td class="style2">
                            <a href="http://www.pluto.it" target="_self" style="text-decoration:none"><img id="Image1" src="images/logobanner.png" style="height:150px;width:1100px;" /></a>
                            </td>
            <td class="style1">&nbsp;
                </td>
        </tr>
        <tr>
            <td class="style1">&nbsp;
                </td>
            <td class="style2">
                <table style="width:100%;">
                    <tr>
                        <td class="style3" align="center">
                            <a id="HyperLink1" href="http://www.pluto.it" style="color:#CC0000;font-family:Arial;font-weight:bold;">Home</a>
                        </td>
                        <td align="center">
                            <span id="Label1" style="color:#CC0000;font-family:Verdana;font-size:XX-Large;font-weight:bold;">Area riservata</span>
                        </td>
                    </tr>
                </table>
                            </td>
            <td class="style1">&nbsp;
                </td>
        </tr>
        <tr>
            <td class="style1">&nbsp;
                </td>
            <td class="style2">
                <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', 'form1', ['tctl00$UpdatePanel1','UpdatePanel1'], [], [], 90, 'ctl00');
//]]>
</script>

                 <div id="UpdatePanel1">
      
                        <div id="PnUtente">
      
                            <span id="lblUtente" style="font-family:Arial;font-size:Medium;font-weight:bold;">Utente : Pippo</span>
                            &nbsp;<input type="image" name="ctl00$btnLogout" id="btnLogout" UseSubmitBehavior="False" src="images/logout.gif" />
                       
   </div>
                       
   
    <script type="text/javascript">
        function isDate(sender, args) {
            var sData = new String(args.Value);
            var sDD = parseInt(sData.substr(0,2));
            var sMM = parseInt(sData.substr(3,2));
            var sYY = parseInt(sData.substr(6,4));
            var dData = new Date(sYY,sMM-1,sDD);
            args.IsValid = (dData.getFullYear()==sYY && dData.getMonth()+1==sMM && dData.getDate()==sDD);
        }
    </script>
    <br />
    <table style="width:100%;">
    <tr >
        <td class="style4">
                        <span id="ContentPlaceHolder1_lblTitolo0" style="color:Silver;font-family:Arial;font-size:XX-Large;font-weight:bold;">Inserimento rapporto Tipo 1 (gruppi termici)</span>
                    </td>
    </tr>
    </table>
   
            <table style="width:800px;">
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td bgcolor="Silver" class="style5" colspan="4">
                        <span id="ContentPlaceHolder1_Label15" style="font-family:Arial;font-size:X-Small;font-weight:bold;font-style:italic;">Dati impianto</span>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5" colspan="4">
                        <table style="width:100%;">
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label2" style="font-family:Arial;font-size:Small;">PdR</span>
                                </td>
                                <td class="style44">
                                    <input name="ctl00$ContentPlaceHolder1$txtPdr" type="text" maxlength="14" id="ContentPlaceHolder1_txtPdr" style="width:190px;" />
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator1" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style15">
                                    <input type="image" name="ctl00$ContentPlaceHolder1$btnCercaPdr" id="ContentPlaceHolder1_btnCercaPdr" src="images/find.png" alt="Cerca utenza" />
                                </td>
                                <td align="right">
                                    <span id="ContentPlaceHolder1_Label3" style="font-family:Arial;font-size:Small;">Potenza termica nominale totale</span>
                                </td>
                                <td>
                                    <span id="ContentPlaceHolder1_Label11" style="font-family:Arial;font-size:Small;"> (kW)</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtKw" type="text" maxlength="4" id="ContentPlaceHolder1_txtKw" style="width:40px;" />
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator2" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label4" style="font-family:Arial;font-size:Small;">Indirizzo</span>
                                </td>
                                <td class="style44">
                                    <input name="ctl00$ContentPlaceHolder1$txtIndirizzo" type="text" maxlength="45" id="ContentPlaceHolder1_txtIndirizzo" style="width:190px;" />
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator3" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style15">
                                    <span id="ContentPlaceHolder1_Label5" style="font-family:Arial;font-size:Small;">Num.</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtNumCivico" type="text" maxlength="5" id="ContentPlaceHolder1_txtNumCivico" style="width:40px;" />
                                    &nbsp;<span id="ContentPlaceHolder1_Label6" style="font-family:Arial;font-size:Small;">Palazzo </span>
                                    &nbsp;<input name="ctl00$ContentPlaceHolder1$txtPalazzo" type="text" maxlength="5" id="ContentPlaceHolder1_txtPalazzo" style="width:40px;" />
                                    &nbsp;<span id="ContentPlaceHolder1_Label7" style="font-family:Arial;font-size:Small;">Scala</span>
                                    &nbsp;<input name="ctl00$ContentPlaceHolder1$txtScala" type="text" maxlength="5" id="ContentPlaceHolder1_txtScala" style="width:40px;" />
                                </td>
                                <td>
                                    <span id="ContentPlaceHolder1_Label8" style="font-family:Arial;font-size:Small;">Int.</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtInterno" type="text" maxlength="5" id="ContentPlaceHolder1_txtInterno" style="width:40px;" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label9" style="font-family:Arial;font-size:Small;">Comune</span>
                                </td>
                                <td class="style44">
                                    <input name="ctl00$ContentPlaceHolder1$txtComune" type="text" maxlength="45" id="ContentPlaceHolder1_txtComune" style="width:190px;" />
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator4" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style15">
                                    <span id="ContentPlaceHolder1_Label10" style="font-family:Arial;font-size:Small;">Prov.</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtProvincia" type="text" maxlength="2" id="ContentPlaceHolder1_txtProvincia" style="width:50px;" />
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator5" style="visibility:hidden;">*</span>
                                </td>
                                <td>&nbsp;
                                    </td>
                                <td>&nbsp;
                                    </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td bgcolor="Silver" class="style5" colspan="4">
                        <span id="ContentPlaceHolder1_Label16" style="font-family:Arial;font-size:X-Small;font-weight:bold;font-style:italic;">Responsabile impianto</span>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5" colspan="4">
                        <table style="width:100%;">
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label12" style="font-family:Arial;font-size:Small;">Cognome</span>
                                </td>
                                <td class="style45">
                                    <input name="ctl00$ContentPlaceHolder1$txtCognome" type="text" maxlength="45" id="ContentPlaceHolder1_txtCognome" disabled="disabled" class="aspNetDisabled" style="width:190px;" />
                                    <span id="ContentPlaceHolder1_fvCognome" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style15">
                                    <span id="ContentPlaceHolder1_Label13" style="font-family:Arial;font-size:Small;">Nome</span>
                                </td>
                                <td class="style16">
                                    <input name="ctl00$ContentPlaceHolder1$txtNome" type="text" maxlength="45" id="ContentPlaceHolder1_txtNome" disabled="disabled" class="aspNetDisabled" style="width:140px;" />
                                    <span id="ContentPlaceHolder1_fvNome" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style17">
                                    <span id="ContentPlaceHolder1_Label26" style="font-family:Arial;font-size:Small;">Cod.Fisc.</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtCodiceFiscale" type="text" maxlength="16" id="ContentPlaceHolder1_txtCodiceFiscale" disabled="disabled" class="aspNetDisabled" style="width:140px;" />
                                    <span id="ContentPlaceHolder1_fvCodiceFiscale" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label27" style="font-family:Arial;font-size:Small;">Ragione sociale</span>
                                </td>
                                <td class="style14" colspan="3">
                                    <input name="ctl00$ContentPlaceHolder1$txtRagioneSociale" type="text" maxlength="45" id="ContentPlaceHolder1_txtRagioneSociale" disabled="disabled" class="aspNetDisabled" style="width:391px;" />
                                    <span id="ContentPlaceHolder1_fvRagioneSociale" style="visibility:hidden;">*</span>
                                </td>
                                <td class="style17">
                                    <span id="ContentPlaceHolder1_Label28" style="font-family:Arial;font-size:Small;">Part.IVA</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtPartitaIVA" type="text" maxlength="11" id="ContentPlaceHolder1_txtPartitaIVA" style="width:140px;" />
                                    <span id="ContentPlaceHolder1_fvPartitaIVA" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label14" style="font-family:Arial;font-size:Small;">Indirizzo</span>
                                    &nbsp;<span id="ContentPlaceHolder1_Label19" style="font-family:Arial;font-size:XX-Small;">(se diverso)</span>
                                </td>
                                <td class="style45">
                                    <input name="ctl00$ContentPlaceHolder1$txtIndirizzoRes" type="text" maxlength="45" id="ContentPlaceHolder1_txtIndirizzoRes" style="width:190px;" />
                                </td>
                                <td class="style15">
                                    <span id="ContentPlaceHolder1_Label17" style="font-family:Arial;font-size:Small;">Comune</span>
                                </td>
                                <td class="style16">
                                    <input name="ctl00$ContentPlaceHolder1$txtComuneRes" type="text" maxlength="45" id="ContentPlaceHolder1_txtComuneRes" style="width:140px;" />
                                </td>
                                <td class="style17">
                                    <span id="ContentPlaceHolder1_Label18" style="font-family:Arial;font-size:Small;">Prov.</span>
                                </td>
                                <td>
                                    <input name="ctl00$ContentPlaceHolder1$txtProvinciaRes" type="text" maxlength="2" id="ContentPlaceHolder1_txtProvinciaRes" style="width:50px;" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <span id="ContentPlaceHolder1_Label79" style="font-family:Arial;font-size:Small;">Telefono</span>
                                </td>
                                <td class="style45">
                                    <input name="ctl00$ContentPlaceHolder1$txtTelefono" type="text" id="ContentPlaceHolder1_txtTelefono" style="width:190px;" />
                                </td>
                                <td class="style15">&nbsp;
                                    </td>
                                <td class="style16">&nbsp;
                                    </td>
                                <td class="style17">&nbsp;
                                    </td>
                                <td>&nbsp;
                                    </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5">
                        <span id="ContentPlaceHolder1_Label20" style="font-family:Arial;font-size:Small;">Tipo responsabilità</span>
                    </td>
                    <td class="style7" colspan="3">
                        <table id="ContentPlaceHolder1_rbResponsabile" style="font-family:Arial;font-size:Small;width:584px;">
      <tr>
         <td><input id="ContentPlaceHolder1_rbResponsabile_0" type="radio" name="ctl00$ContentPlaceHolder1$rbResponsabile" value="1" checked="checked" /><label for="ContentPlaceHolder1_rbResponsabile_0">Proprietario</label></td><td><input id="ContentPlaceHolder1_rbResponsabile_1" type="radio" name="ctl00$ContentPlaceHolder1$rbResponsabile" value="2" /><label for="ContentPlaceHolder1_rbResponsabile_1">Occupante</label></td><td><input id="ContentPlaceHolder1_rbResponsabile_2" type="radio" name="ctl00$ContentPlaceHolder1$rbResponsabile" value="3" /><label for="ContentPlaceHolder1_rbResponsabile_2">Amministratore condominio</label></td><td><input id="ContentPlaceHolder1_rbResponsabile_3" type="radio" name="ctl00$ContentPlaceHolder1$rbResponsabile" value="4" /><label for="ContentPlaceHolder1_rbResponsabile_3">Terzo responsabile</label></td>
      </tr>
   </table>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5" colspan="4" bgcolor="Silver">
                        <span id="ContentPlaceHolder1_Label21" style="font-family:Arial;font-size:X-Small;font-weight:bold;font-style:italic;">Documentazione tecnica a corredo</span>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5" colspan="2">
                        <table style="width:400px;">
                            <tr>
                                <td class="style42">
                                    <span id="ContentPlaceHolder1_Label22" style="font-family:Arial;font-size:Small;">Dichiarazione di conformità presente</span>
                                </td>
                                <td class="style46">
                                    <table id="ContentPlaceHolder1_rbDichiarazioneConforme" style="font-family:Arial;font-size:X-Small;">
      <tr>
         <td><input id="ContentPlaceHolder1_rbDichiarazioneConforme_0" type="radio" name="ctl00$ContentPlaceHolder1$rbDichiarazioneConforme" value="1" /><label for="ContentPlaceHolder1_rbDichiarazioneConforme_0">Si</label></td><td><input id="ContentPlaceHolder1_rbDichiarazioneConforme_1" type="radio" name="ctl00$ContentPlaceHolder1$rbDichiarazioneConforme" value="0" /><label for="ContentPlaceHolder1_rbDichiarazioneConforme_1">No</label></td>
      </tr>
   </table>
                                </td>
                                <td style="width:50px;">
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator10" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style42">
                                    <span id="ContentPlaceHolder1_Label23" style="font-family:Arial;font-size:Small;">Libretto impianto presente</span>
                                </td>
                                <td class="style46">
                                    <table id="ContentPlaceHolder1_rbLibrettoImpiantoPresente" style="font-family:Arial;font-size:X-Small;">
      <tr>
         <td><input id="ContentPlaceHolder1_rbLibrettoImpiantoPresente_0" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoImpiantoPresente" value="1" /><label for="ContentPlaceHolder1_rbLibrettoImpiantoPresente_0">Si</label></td><td><input id="ContentPlaceHolder1_rbLibrettoImpiantoPresente_1" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoImpiantoPresente" value="0" /><label for="ContentPlaceHolder1_rbLibrettoImpiantoPresente_1">No</label></td>
      </tr>
   </table>
                                </td>
                                <td>
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator9" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td class="style9" colspan="2">
                        <table style="width:100%;">
                            <tr>
                                <td class="style10">
                                    <span id="ContentPlaceHolder1_Label24" style="font-family:Arial;font-size:Small;">Libretti uso/manutenzione presenti</span>
                                </td>
                                <td class="style66">
                                    <table id="ContentPlaceHolder1_rbLibrettoUsoPresente" style="font-family:Arial;font-size:X-Small;">
      <tr>
         <td><input id="ContentPlaceHolder1_rbLibrettoUsoPresente_0" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoUsoPresente" value="1" /><label for="ContentPlaceHolder1_rbLibrettoUsoPresente_0">Si</label></td><td><input id="ContentPlaceHolder1_rbLibrettoUsoPresente_1" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoUsoPresente" value="0" /><label for="ContentPlaceHolder1_rbLibrettoUsoPresente_1">No</label></td>
      </tr>
   </table>
                                </td>
                                <td>
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator11" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style10">
                                    <span id="ContentPlaceHolder1_Label25" style="font-family:Arial;font-size:Small;">Libretto compilato in tutte le sue parti</span>
                                </td>
                                <td class="style66">
                                    <table id="ContentPlaceHolder1_rbLibrettoCompilato" style="font-family:Arial;font-size:X-Small;">
      <tr>
         <td><input id="ContentPlaceHolder1_rbLibrettoCompilato_0" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoCompilato" value="1" /><label for="ContentPlaceHolder1_rbLibrettoCompilato_0">Si</label></td><td><input id="ContentPlaceHolder1_rbLibrettoCompilato_1" type="radio" name="ctl00$ContentPlaceHolder1$rbLibrettoCompilato" value="0" /><label for="ContentPlaceHolder1_rbLibrettoCompilato_1">No</label></td>
      </tr>
   </table>
                                </td>
                                <td>
                                    <span id="ContentPlaceHolder1_RequiredFieldValidator12" style="visibility:hidden;">*</span>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5" colspan="4">
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td class="style20">&nbsp;
                        </td>
                    <td class="style5">
                        <input type="image" name="ctl00$ContentPlaceHolder1$btnIndietro5" id="ContentPlaceHolder1_btnIndietro5" src="images/button_esci.png" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ContentPlaceHolder1$btnIndietro5&quot;, &quot;&quot;, false, &quot;&quot;, &quot;login.aspx&quot;, false, false))" />
                    </td>
                    <td class="style19">&nbsp;
                        </td>
                    <td class="style12">&nbsp;
                        </td>
                    <td align="right">
                        <input type="image" name="ctl00$ContentPlaceHolder1$btnAvanti1" id="ContentPlaceHolder1_btnAvanti1" src="images/button_avanti.png" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ContentPlaceHolder1$btnAvanti1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" />
                    </td>
                </tr>
            </table>
       
    <br />
   
                   
</div>   
            </td>
            <td class="style1">&nbsp;
                </td>
        </tr>
        <tr>
            <td class="style1">&nbsp;
                </td>
            <td class="style2">
                <input type="submit" name="ctl00$btnDummy" value="dummy" onclick="return false;" id="btnDummy" style="display:none" />
            </td>
            <td class="style1">&nbsp;
                </td>
        </tr>
    </table>
   
<script type="text/javascript">
//<![CDATA[
var Page_Validators =  new Array(document.getElementById("ContentPlaceHolder1_RequiredFieldValidator1"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator2"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator3"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator4"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator5"), document.getElementById("ContentPlaceHolder1_fvCognome"), document.getElementById("ContentPlaceHolder1_fvNome"), document.getElementById("ContentPlaceHolder1_fvCodiceFiscale"), document.getElementById("ContentPlaceHolder1_fvRagioneSociale"), document.getElementById("ContentPlaceHolder1_fvPartitaIVA"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator10"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator9"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator11"), document.getElementById("ContentPlaceHolder1_RequiredFieldValidator12"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var ContentPlaceHolder1_RequiredFieldValidator1 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator1"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator1");
ContentPlaceHolder1_RequiredFieldValidator1.controltovalidate = "ContentPlaceHolder1_txtPdr";
ContentPlaceHolder1_RequiredFieldValidator1.errormessage = "RequiredFieldValidator";
ContentPlaceHolder1_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator1.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator2 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator2"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator2");
ContentPlaceHolder1_RequiredFieldValidator2.controltovalidate = "ContentPlaceHolder1_txtKw";
ContentPlaceHolder1_RequiredFieldValidator2.errormessage = "RequiredFieldValidator";
ContentPlaceHolder1_RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator2.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator3 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator3"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator3");
ContentPlaceHolder1_RequiredFieldValidator3.controltovalidate = "ContentPlaceHolder1_txtIndirizzo";
ContentPlaceHolder1_RequiredFieldValidator3.errormessage = "RequiredFieldValidator";
ContentPlaceHolder1_RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator3.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator4 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator4"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator4");
ContentPlaceHolder1_RequiredFieldValidator4.controltovalidate = "ContentPlaceHolder1_txtComune";
ContentPlaceHolder1_RequiredFieldValidator4.errormessage = "RequiredFieldValidator";
ContentPlaceHolder1_RequiredFieldValidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator4.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator5 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator5"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator5");
ContentPlaceHolder1_RequiredFieldValidator5.controltovalidate = "ContentPlaceHolder1_txtProvincia";
ContentPlaceHolder1_RequiredFieldValidator5.errormessage = "RequiredFieldValidator";
ContentPlaceHolder1_RequiredFieldValidator5.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator5.initialvalue = "";
var ContentPlaceHolder1_fvCognome = document.all ? document.all["ContentPlaceHolder1_fvCognome"] : document.getElementById("ContentPlaceHolder1_fvCognome");
ContentPlaceHolder1_fvCognome.controltovalidate = "ContentPlaceHolder1_txtCognome";
ContentPlaceHolder1_fvCognome.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_fvCognome.initialvalue = "";
var ContentPlaceHolder1_fvNome = document.all ? document.all["ContentPlaceHolder1_fvNome"] : document.getElementById("ContentPlaceHolder1_fvNome");
ContentPlaceHolder1_fvNome.controltovalidate = "ContentPlaceHolder1_txtPdr";
ContentPlaceHolder1_fvNome.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_fvNome.initialvalue = "";
var ContentPlaceHolder1_fvCodiceFiscale = document.all ? document.all["ContentPlaceHolder1_fvCodiceFiscale"] : document.getElementById("ContentPlaceHolder1_fvCodiceFiscale");
ContentPlaceHolder1_fvCodiceFiscale.controltovalidate = "ContentPlaceHolder1_txtCodiceFiscale";
ContentPlaceHolder1_fvCodiceFiscale.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_fvCodiceFiscale.initialvalue = "";
var ContentPlaceHolder1_fvRagioneSociale = document.all ? document.all["ContentPlaceHolder1_fvRagioneSociale"] : document.getElementById("ContentPlaceHolder1_fvRagioneSociale");
ContentPlaceHolder1_fvRagioneSociale.controltovalidate = "ContentPlaceHolder1_txtRagioneSociale";
ContentPlaceHolder1_fvRagioneSociale.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_fvRagioneSociale.initialvalue = "";
var ContentPlaceHolder1_fvPartitaIVA = document.all ? document.all["ContentPlaceHolder1_fvPartitaIVA"] : document.getElementById("ContentPlaceHolder1_fvPartitaIVA");
ContentPlaceHolder1_fvPartitaIVA.controltovalidate = "ContentPlaceHolder1_txtPartitaIVA";
ContentPlaceHolder1_fvPartitaIVA.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_fvPartitaIVA.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator10 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator10"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator10");
ContentPlaceHolder1_RequiredFieldValidator10.controltovalidate = "ContentPlaceHolder1_rbDichiarazioneConforme";
ContentPlaceHolder1_RequiredFieldValidator10.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator10.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator9 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator9"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator9");
ContentPlaceHolder1_RequiredFieldValidator9.controltovalidate = "ContentPlaceHolder1_rbLibrettoImpiantoPresente";
ContentPlaceHolder1_RequiredFieldValidator9.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator9.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator11 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator11"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator11");
ContentPlaceHolder1_RequiredFieldValidator11.controltovalidate = "ContentPlaceHolder1_rbLibrettoUsoPresente";
ContentPlaceHolder1_RequiredFieldValidator11.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator11.initialvalue = "";
var ContentPlaceHolder1_RequiredFieldValidator12 = document.all ? document.all["ContentPlaceHolder1_RequiredFieldValidator12"] : document.getElementById("ContentPlaceHolder1_RequiredFieldValidator12");
ContentPlaceHolder1_RequiredFieldValidator12.controltovalidate = "ContentPlaceHolder1_rbLibrettoCompilato";
ContentPlaceHolder1_RequiredFieldValidator12.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ContentPlaceHolder1_RequiredFieldValidator12.initialvalue = "";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        WebForm_AutoFocus('btnDummy');
document.getElementById('ContentPlaceHolder1_RequiredFieldValidator1').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator1'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator2').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator2'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator3').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator3'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator4').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator4'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator5').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator5'));
}

document.getElementById('ContentPlaceHolder1_fvCognome').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_fvCognome'));
}

document.getElementById('ContentPlaceHolder1_fvNome').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_fvNome'));
}

document.getElementById('ContentPlaceHolder1_fvCodiceFiscale').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_fvCodiceFiscale'));
}

document.getElementById('ContentPlaceHolder1_fvRagioneSociale').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_fvRagioneSociale'));
}

document.getElementById('ContentPlaceHolder1_fvPartitaIVA').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_fvPartitaIVA'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator10').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator10'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator9').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator9'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator11').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator11'));
}

document.getElementById('ContentPlaceHolder1_RequiredFieldValidator12').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('ContentPlaceHolder1_RequiredFieldValidator12'));
}
//]]>
</script>
</form>
 </body>
</html>


nelle varie prove fatte ho aggiunto, nella maschera di Access da dove devo prendere i dati, un Webbrawser chiamandolo Webbrowser1

Immagine

pensando che, apparte la comodità, fosse stato più semplice copiare i dati.
Nel 90% delle prove fatte mi dava sempre l'errore "errore di compilazione - Impossibile trovare il metodo o il membro dei dati" evidenziando .Document

in teoria il codice dovrebbe essere:
Codice: Seleziona tutto
private sub comando1_click()
Webbrowser1.document.all.item("ContentPlaceHolder1_txtPdr").Value = "12352164852795"
end sub


ovviamente ho provato i tuoi codici e varie combinazioni ma sempre la stessa cosa... "Impossibile trovare il metodo o il membro dei dati"
se quell'errore è colpa mia.. ok ci sbatto la testa finchè non ne vengo a capo ma, se è dovuto al codice della pagina web è meglio che lo sappia subito altrimenti qua ci divento vecchio :undecided: :undecided: :undecided:

Un Saluto!!
Marco9955
Newbie
 
Post: 3
Iscritto il: 10/05/16 12:25

Re: Compilare un campo in pagina web da una maschera di Acce

Postdi Anthony47 » 14/05/16 18:52

Gli esempi che ti ho passato sono basati sull'apertura di una sessione IE come processo figlio del vba, quindi controllabile da vba; il vantaggio e' che si puo' controllare il sorgente in modo interattivo attivando gli strumenti di sviluppo, oltre una piu' facile navigabilita' nella pagina e a una migliore conoscenza di quel metodo da parte mia.
Comunque anche il WebBrowser consente di arrivare agli elementi di interesse.
Ad esempio, avendo posizionato un WebBrowser su una form questo codice mi consente di visualizzare la pagina bing.com (vedi codice in Sub UserForm_Activate) e successivamente avviare una ricerca degli strumenti di backup presenti su Win 7 (al click sulla form). Il codice corrispondente:
Codice: Seleziona tutto
Dim DocCompleted As Boolean   'In testa al Modulo

Private Sub UserForm_Activate()
Dim myTim As Single
DocCompleted = False
Me.WebBrowser1.Navigate "http://www.bing.com/"
myTim = Timer
Do While Not DocCompleted   'Attesa "Document"
    If Timer > myTim + 10 Or Timer < myTim Then Exit Do
    DoEvents: Loop
End Sub

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
DocCompleted = True
End Sub

Private Sub UserForm_Click()
Dim myDoc
Set myDoc = Me.WebBrowser1.Document
myDoc.getElementById("sb_form_q").Value = "Windows 7 Backup"
myDoc. getElementById("sb_form_go").Click
End Sub

In questo esempio ho usato la ricerca di element "byId", e mi pare puoi usare la stessa tecnica nella tua form;
Codice: Seleziona tutto
myDoc.getElementById("ContentPlaceHolder1_txtPdr").Value = "Questo e' il PdR"


Negli esempi lo stato del webbrowser e' gestito alla leggera, quindi tocca a te controllare "a occhio" che la navigazione si sia completata e il contenuto sia disponibile nel webbrowser.

Vedi dove riesci ad arrivare con questi spunti.

Ciao
Avatar utente
Anthony47
Moderatore
 
Post: 19196
Iscritto il: 21/03/06 16:03
Località: Ivrea


Torna a Applicazioni Office Windows


Topic correlati a "Compilare un campo in pagina web da una maschera di Access":


Chi c’è in linea

Visitano il forum: Nessuno e 50 ospiti