My Home      Forums      Posts      [French] [English] [Germany] [Spanish] [Italian] [Japanese] [Portuguese]
Hosted by 4D NET Center


My Home > Public forums > SVG - français > WEB 2 IMAGE 0 

  Topic : WEB 2 IMAGE 0

This topic is solved [  Previous topic  |  Next topic  ]

4 replies, 3 posters          Last post : 28/10/2011 - 15:21 GMT  by Member 20222


Member 20222
WEB 2 IMAGE 0
Sent on : 11/10/2011 - 12:48 GMT
     

>Product :4D - 4D Server
>4D : v11 SQL r8
>OS : Windows Server 2008 SP2 / R2

Bonjour,

Je viens de réaliser une page WEB pour laquelle en retour
le serveur WEB 4D me retourne en entête de colonne des titres
verticaux fabriquer via SVG.

Tout ceci fonctionne correctement sous FireFox, IE6, IE7, mais
sous IE8, de tant à autre certaines images ne s'affichent pas (j'ai une splendide croix rouge).
Affichage sous IE8this is an image1

Des pistes peut-être?

Amicalement



Member 26668
Re:(1) WEB 2 IMAGE 0
Sent on : 11/10/2011 - 13:15 GMT       In response to: 20222
     

Je réponds à coté, mais plutôt que des images, tu as tenté le texte vertical ?
J'ai googlé un œil (texte vertical, ou rotation texte), ça semble possible, par exemple :
http://snook.ca/archives/html_and_css/css-text-rotation



Member 20222
Re:(3) WEB 2 IMAGE 0
Sent on : 13/10/2011 - 19:59 GMT       In response to: 26668
     

Bonsoir,

En effet bien vu, le seul bémol c'est la difficulté
de compatibilité des différents navigateurs. Chose
dont je souhaitais me passer en passant par 4D.
Un grand merci à Arnaud.



Vincent DE LACHAUX    
Re:(4) WEB 2 IMAGE 0
Sent on : 14/10/2011 - 07:38 GMT       In response to: 20222
     

Bonjour,

Vous nous montrez le code HTML, mais le code SVG dans la page affichée serait probablement plus parlant. Si vous pouvez enregistrer un fichier 'quand ça marche' et un 'quand ça marche pas' vous verrez peut-être une différence. Vous pouvez les poster ici si vous désirez que l'on regarde.



Member 20222
Re:(5) WEB 2 IMAGE 0
Sent on : 28/10/2011 - 15:21 GMT       In response to: 18220
     
Bonjour,

Avec beaucoup de retard voici la méthode 4D qui génère une image GIF.
Malheureusement ce code fonctionne parfaitement sous FF 3.5, IE 6 et 7
mais sous IE 8 1 fois sur 2

Code 4D :       View in english :       Voir en texte pour copie :  
1 C_TEXTE($1`` TEXTE EN PARAMETRE
2 C_TEXTE($STR_text_wrk)
3 C_ENTIER($pos)
4 C_BLOB($my_blob)
5 C_IMAGE($IMG_graph)
6 C_ALPHA(16;$ref_SVG;Obj_SVG)
7 C_TEXTE($STR_color)
8 
9 $STR_text_wrk:=Sous chaine($1;2)
10 $pos:=Position("_";$STR_text_wrk)
11 Si($pos#0)
12    $STR_text_wrk:=Sous chaine($STR_text_wrk;1;$pos-1)
13 Fin de si
14 $STR_text_wrk:=Remplacer chaine($STR_text_wrk;" ";"\r")
15 $ref_SVG:=SVG_New
16 Obj_SVG:=SVG_New_text($ref_SVG;$STR_text_wrk;-90;0;"Arial";14;Gras;Aligné à gauche;"Black";-90)
17  `` ROUGE : #E70739
18  `` JAUNE : #FFFF99
19  `` VERT : #99FF66
20  `` MARRON : #999933
21  `` EXPORT DE L'OBJET SVG VERS UNE VARIABLE IMAGE
22 $IMG_graph:=SVG_Export_to_picture(Obj_SVG;1)
23 IMAGE VERS GIF($IMG_graph;$my_blob)
24 ENVOYER BLOB HTML($my_blob;"image/gif") ``"image/gif"
25  `` EFFACEMENT DU GRAPH
26 SVG_CLEAR($ref_SVG)


Bon week-end.



This topic is solved [  Previous topic  |  Next topic  ]

4 replies, 3 posters To participate in this thread you must sign in or register for this forum.



My Home > Public forums > SVG - français > WEB 2 IMAGE 0 
Welcome
Login
Password
Announcements and Stickies
Current versions
4D v12.3
4D v11 SQL Release 9 (11.9)
Statistics

Powered by 4D

Geo Visitors Map

  Last update -> 
   Clichy : 18:16  San José : 08:16  Bienne : 18:16  Neufahrn : 18:16  Madrid : 18:16 
  
Manchester : 17:16  Tokyo : 01:16  Pymble : 03:16  Kista : 18:16  @844.5
297ms - 0 ms