Introduzione
...
Barcode.aspx risiede nella "frontend" root di ogni console 8.3 o versione successiva e non salva nessuna delle immagini barcode sullo spazio fisico della console. Questo al fine di evitare il sovraccarico del server.
Note | ||
---|---|---|
| ||
Dall'editor della console, il codice a barre sarà visualizzato con il suo valore di default. |
...
Url di base
http://<consoleurl>/frontend/Barcode.aspx
Url completa con Params
<img src=http://<ConsoleHost>/frontend/Barcode.aspx?idoptin=[_idoptin]&hash=[_hash]&BarcodeHeight=60&SymbologyId=14&NarrowBarWidth=2&bearerbarsmode=0&BitmapTargetFormat=1&Ratio=0&TargetDynField=[LatestShippedOrderID]&FontHeight=0,2 />
...
SymbologyId | Symbology name |
---|---|
1 | Codabar |
2 | Code11 |
3 | Code128 |
4 | Code39 |
5 | Code39Ext |
6 | Code93 |
7 | Code93Ext |
8 | Deutsche Post Ident Code |
9 | Deutsche Post Leit Code |
10 | Ean218 |
11 | Ean13 |
12 | Ean14 |
13 | Ean8 |
14 | Interleaved 2 of 5 |
15 | ITF14 |
16 | Msi |
17 | Numly |
18 | Opc |
19 | Planet |
20 | Postnet |
21 | Pzn |
22 | Royal Mail 4 state |
23 | Royal Tnt Post Kix |
24 | Industrial 2 of 5 |
25 | Singapore post 4 State |
26 | SSCC18 |
27 | Swiss Post Parcel |
28 | UPCA |
29 | UPCE |
30 | USP Sack label |
31 | USP Tray label |
BUILD UP YOUR BARCODE URL
Since there's no built in functionality helping you to display a barcode inside the markup, you'll need to build yourself the URL.
No panic, it takes two minutes . Ok, maybe only three
Please follow the brief guide prepared to build your own Barcode Image URL :
...
Come costruire la tua URL codice a barre
Poiché non è ancora predisposta per ora, una funzione per aiutarti a visualizzare un codice a barre all'interno del markup, avrai bisogno di costruire tu stessi l'URL.
Non ti preoccupare, ci vorranno soltanto 2 minuti
Segui questa breve e semplice guida per costruire la tua URL codice a barre:
- Apri un qualunque editor di testo con cui sei abituato a lavorare (ti consigliamo Notepad + +, ma il blocco note di Windows va bene lo stesso)
- Copia questo snippet : http://<ConsoleHost>/frontend/Barcode.aspx?idoptin=[_idoptin]&hash=[_hash]&BarcodeHeight=60&SymbologyId=14&NarrowBarWidth=2&bearerbarsmode=0&BitmapTargetFormat=1&Ratio=0&TargetDynField=[LatestShippedOrderID]&FontHeight=0,2
- Now replace those parts of the query string marked in red with actual information : <consolehost> must be replace with your console URL ( for instance Adesso sostituisci le parti della stringa evidenziate in rosso con le informazioni corrette: <consolehost> deve essere sostituito con la URL della tua console ( per esempio a8g5c.mailup.com ) and LatestShippedOrderId with the Dynamic Field you've defined holding ( and filled in with ) the barcode numeric number.Select it entirely e LatestShippedOrderId con il Campo dinamico da te scelto ( e riempito con ) il codice a barre numerico.
- Seleziona tutto ( CTRL + A ) and copy it to clipboard e copia nel foglio appunti ( CTRL +C )
- Now open your web browser and Log into your MailUp console
- Click on Messages–> Email–> New–> Create New Email as below
- Type in subject textbox and jump to the HTML editor area, then click on the HTML tab at the bottom of it and click on the "<> HTML" tab as shown in the below screen shot
- Write a plain and empty HTML Img tag such as Adesso apri il tuo Internet browser e fai Log in nella tua console MailUP
- Clicca su Messaggi > Email > Nuovo > Nuova email
7. Dall'editor passa alla modalità HTML cliccando su "<> HTML" come mostrato nella figura sotto.
8. Inserisci un HTML tag vuoto come quello che segue: <img src="" />
...
- Now it's time to fill the Image tag "src "property with the actual barcode module path : barcode image path must always display an absolute path : <img src="PASTE HERE YOUR BARCODE URL PREVIOUSLY COPIED FROM NOTEPAD" />
- Click on Save. Now you should be seeing the barcode rendered in the preview window as below
RENDERING FAILURE
The application may receive a wrong sequence format against a certain symbology : the application won't display any error message but it will display instead an empty 1x1 pixel image so that the calling image won't appear as broken nell'area testo dell'editor come mostrato qui sotto.
9. Ora è il momento di riempire il tag image "src" con il path del codice a barre, il path del codice a barre deve essere sempre assoluto: <img src="INCOLLA QUI IL TUO CODICE A BARRE URL PRECEDENTEMENTE COPIATO DA NOTEPAD" />
10. Clicca su salva. Ora dovresti vedere il rendere del codice a barre nella preview del tuo messaggio come mostrato sotto:
Fallimento del rendering del codice a barre
L'applicazione può ricevere una formato sequenza errato di una certa simbology : l'applicazione non visualizzerà nessun messaggio di errore, ma visualizzerà invece un'immagine pixel vuota così che l'immagine chiamata non apparirà come rotta.
Anchor | ||||
---|---|---|---|---|
|