Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un
nouveau groupe, ou avant le } du groupe précédent, ou
encore ?
Faut-il ajouter une espace ?
Merci d'avance
P.S. j'ai essayé un Chr(12) à la fin d'un texte, mais cela
a le même effet que CRLF.
Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un
nouveau groupe, ou avant le } du groupe précédent, ou
encore ?
Faut-il ajouter une espace ?
Merci d'avance
P.S. j'ai essayé un Chr(12) à la fin d'un texte, mais cela
a le même effet que CRLF.
Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un
nouveau groupe, ou avant le } du groupe précédent, ou
encore ?
Faut-il ajouter une espace ?
Merci d'avance
P.S. j'ai essayé un Chr(12) à la fin d'un texte, mais cela
a le même effet que CRLF.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Youky" a écrit dans le
message de news:
O$k%Bien sur que je suis intéressé.
Voici même mon Adresse au cas ou tu souhaite me répondre
dans ma Bal
Merci d'avance
Youky
"LE TROLL" <le a écrit dans le message
news:Salut, ça marche très bien mon impression de
RTF,
veux-tu que je te passes mon code ?
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Youky" <bruno.jeune-nospam@wanadoo.fr> a écrit dans le
message de news:
O$k%23WDVJFHA.2132@TK2MSFTNGP14.phx.gbl...
Bien sur que je suis intéressé.
Voici même mon Adresse au cas ou tu souhaite me répondre
dans ma Bal
Merci d'avance
Youky
"LE TROLL" <le troll@paris.fr> a écrit dans le message
news:
eUDpGROJFHA.1528@TK2MSFTNGP09.phx.gbl...
Salut, ça marche très bien mon impression de
RTF,
veux-tu que je te passes mon code ?
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Youky" a écrit dans le
message de news:
O$k%Bien sur que je suis intéressé.
Voici même mon Adresse au cas ou tu souhaite me répondre
dans ma Bal
Merci d'avance
Youky
"LE TROLL" <le a écrit dans le message
news:Salut, ça marche très bien mon impression de
RTF,
veux-tu que je te passes mon code ?
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" a écrit
dans le message de news:Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" <ericMettreUnPointbarsalou@wanadoo.fr> a écrit
dans le message de news:
eTKV6dVJFHA.1308@TK2MSFTNGP15.phx.gbl...
Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption =
Form1.titre
If Form1.BRIDE = True Then: Form11.Caption =
Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans
la table des recherches ou dans la totalité de l'aide,
copier un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA
RECHERCHE" + Chr(10) + "Continue la recherche demandée." +
Chr(10) + Chr(10) + "IMPRESSION" + Chr(10) + "Outre
l'impression papier prévue dans le menu haut, à l'aide de
la souris vous pouvez sélectionner le texte désiré, le
copier, puis le coller dans une application Windows pour
impression.", 64, "Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système +
<alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" a écrit
dans le message de news:Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption > Form1.titre
If Form1.BRIDE = True Then: Form11.Caption > Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
table des recherches ou dans la totalité de l'aide, copier
un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
+ Chr(10) + "Continue la recherche demandée." + Chr(10) +
Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
papier prévue dans le menu haut, à l'aide de la souris vous
pouvez sélectionner le texte désiré, le copier, puis le
coller dans une application Windows pour impression.", 64,
"Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" a écrit
dans le message de news:Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption > Form1.titre
If Form1.BRIDE = True Then: Form11.Caption > Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
table des recherches ou dans la totalité de l'aide, copier
un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
+ Chr(10) + "Continue la recherche demandée." + Chr(10) +
Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
papier prévue dans le menu haut, à l'aide de la souris vous
pouvez sélectionner le texte désiré, le copier, puis le
coller dans une application Windows pour impression.", 64,
"Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" <ericMettreUnPointbarsalou@wanadoo.fr> a écrit
dans le message de news:
eTKV6dVJFHA.1308@TK2MSFTNGP15.phx.gbl...
Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Salut, ça vaut ce que ça vaut, lol, mais ça marche,
dis-moi si c'est ça que tu veux???
Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
-------
Routines avec RTF (impression, recherche, poursuite de a
recherche)
OBJETS
-1-
aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
dans FileName = path + Aide.rtf
-2-
textBox = quoi-cherche
-3- menus
m_cherche
m_poursuivre
m_imp
m_aide
' aide
'
Dim ou As Long
Dim ici As Long
Dim recherche As String
'
Sub Form_Load()
' éditeur du logiciel pour lien Internet...
If Form1.BRIDE = False Then: Form11.Caption > Form1.titre
If Form1.BRIDE = True Then: Form11.Caption > Form1.titre_bride
'
Label1.Visible = False
quoi_cherche.Visible = False
End Sub
Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
touches
If KeyCode = 113 Then: Call va_recherche 'F2
If KeyCode = 114 Then: Call va_continue 'F3
End Sub
Sub m_recherche_Click()
Call va_recherche
End Sub
Sub va_recherche() 'recherche
Dim quoi As Integer
'
On Error Resume Next
quoi_cherche = ""
recherche = ""
Label1.Visible = False
quoi_cherche.Visible = False
'
recherche = InputBox("Aide" + Chr(10) + "Saisir le
texte recherché ?")
'
quoi = Len(recherche)
If quoi = 0 Then: Exit Sub
'
Label1.Visible = True
quoi_cherche.Visible = True
'
quoi_cherche.Text = recherche 'affiche recherche
ou = aideF.Find(recherche, 0, , 2 Or 8)
aideF.SetFocus
If ou = (-1) Then
MsgBox "Texte non trouvé", 48
Exit Sub
End If
aideF.SelStart = ou ' n°octet texte
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_poursuivre_Click()
Call va_continue
End Sub
Sub va_continue() 'continue la recherche
Dim quoi As Integer
'
If quoi_cherche = "" Then
MsgBox "Aucune chaîne n'est en recherche", 48
Exit Sub
End If
On Error Resume Next
aideF.SetFocus
aideF.SelStart = ou
ou = ou + 1
ici = aideF.Find(recherche, ou, , 2 Or 8)
If ici = (-1) Then: MsgBox "Texte non trouvé", 48
ou = ici
aideF.SelStart = ou
aideF.Span " ,;:.?!+*-/=", True, True
End Sub
Sub m_aide_Click()
MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
(du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
table des recherches ou dans la totalité de l'aide, copier
un texte et le coller dans la boîte de saisie des
recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
+ Chr(10) + "Continue la recherche demandée." + Chr(10) +
Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
papier prévue dans le menu haut, à l'aide de la souris vous
pouvez sélectionner le texte désiré, le copier, puis le
coller dans une application Windows pour impression.", 64,
"Aide sur l'aide"
End Sub
Sub m_imp_Click() ' impression papier RTF géré en lignes,
colonnes et blancs insécables...
Dim maxi As Long
Dim combien As Long
Dim avance As Long
Dim texte_1 As String
Dim texte_2 As String
Dim o_s, p_s As String * 1
Dim o_n As Integer
Dim b As Long
'
reponse = MsgBox("Confirmez l'impression", vbQuestion +
vbYesNo + vbDefaultButton2)
If reponse <> vbYes Then Exit Sub
'
texte_1 = aideF.Text ' balance le contenu dans
variable aideF = RTF
maxi = Len(texte_1) ' taille tu texte
combien = 1
avance = 1
For b = 1 To maxi
o_s = Mid(texte_1, b, 1) ' extraction de chaque
octet
texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
text_2
o_n = Asc(o_s) ' contrôle la valeur ascii de
l'octet extrait
If o_n = 13 Then: combien = 0 ' saut de ligne
If combien > 64 And o_n = 32 Then ' saut de page
'
If o_n = 32 Then ' gestion blanc insécable
o_s = Mid(texte_1, b + 1, 1)
If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
= ";" Then
texte_2 = texte_2 + o_s
b = b + 1
GoTo ici
End If
End If
'
texte_2 = texte_2 + Chr(13)
texte_2 = texte_2 + Chr(10)
combien = 0
End If
combien = combien + 1
avance = avance + 1
ici:
Next b
'''''''''''''''''''''
Printer.FontName = "courrier new"
Printer.FontSize = 12
Printer.Print texte_2
Printer.EndDoc
End Sub
Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
Cancel = Cancel - 1
Call ends
End Sub
Sub ends()
Form11.Hide
Unload Form11
Form1.SetFocus
End Sub
---------------
"Barsalou" a écrit
dans le message de news:Je suis également intéressé.
Peut-être devrais-tu mettre ton code sur le forum.
Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un nouveau groupe,
avant le } du groupe précédent, ou encore ?
Faut-il ajouter une espace ?
Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un nouveau groupe,
avant le } du groupe précédent, ou encore ?
Faut-il ajouter une espace ?
Ok, mais comment dois insérer le pagebb ?
En le concaténant dans le textRTF après le { initial d'un nouveau groupe,
avant le } du groupe précédent, ou encore ?
Faut-il ajouter une espace ?
Salut,
Envoyer le projet avec aurait été plus astucieux, car la il faut recrer un
projet, ajouter l'objet rtfbox, rajouter ta form... sinon on a le droit à
une zolie erreur...
En plus y a des goto partout :)
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
LE TROLL wrote:
> Salut, ça vaut ce que ça vaut, lol, mais ça marche,
> dis-moi si c'est ça que tu veux???
> Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
> -------
> Routines avec RTF (impression, recherche, poursuite de a
> recherche)
>
> OBJETS
> -1-
> aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
> dans FileName = path + Aide.rtf
> -2-
> textBox = quoi-cherche
> -3- menus
> m_cherche
> m_poursuivre
> m_imp
> m_aide
>
>
> ' aide
> '
> Dim ou As Long
> Dim ici As Long
> Dim recherche As String
> '
> Sub Form_Load()
> ' éditeur du logiciel pour lien Internet...
> If Form1.BRIDE = False Then: Form11.Caption > > Form1.titre
> If Form1.BRIDE = True Then: Form11.Caption > > Form1.titre_bride
> '
> Label1.Visible = False
> quoi_cherche.Visible = False
> End Sub
>
> Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
> touches
> If KeyCode = 113 Then: Call va_recherche 'F2
> If KeyCode = 114 Then: Call va_continue 'F3
> End Sub
>
> Sub m_recherche_Click()
> Call va_recherche
> End Sub
>
> Sub va_recherche() 'recherche
> Dim quoi As Integer
> '
> On Error Resume Next
> quoi_cherche = ""
> recherche = ""
> Label1.Visible = False
> quoi_cherche.Visible = False
> '
> recherche = InputBox("Aide" + Chr(10) + "Saisir le
> texte recherché ?")
> '
> quoi = Len(recherche)
> If quoi = 0 Then: Exit Sub
> '
> Label1.Visible = True
> quoi_cherche.Visible = True
> '
> quoi_cherche.Text = recherche 'affiche recherche
> ou = aideF.Find(recherche, 0, , 2 Or 8)
> aideF.SetFocus
> If ou = (-1) Then
> MsgBox "Texte non trouvé", 48
> Exit Sub
> End If
> aideF.SelStart = ou ' n°octet texte
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_poursuivre_Click()
> Call va_continue
> End Sub
>
> Sub va_continue() 'continue la recherche
> Dim quoi As Integer
> '
> If quoi_cherche = "" Then
> MsgBox "Aucune chaîne n'est en recherche", 48
> Exit Sub
> End If
> On Error Resume Next
> aideF.SetFocus
> aideF.SelStart = ou
> ou = ou + 1
> ici = aideF.Find(recherche, ou, , 2 Or 8)
> If ici = (-1) Then: MsgBox "Texte non trouvé", 48
> ou = ici
> aideF.SelStart = ou
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_aide_Click()
> MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
> (du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
> table des recherches ou dans la totalité de l'aide, copier
> un texte et le coller dans la boîte de saisie des
> recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
> + Chr(10) + "Continue la recherche demandée." + Chr(10) +
> Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
> papier prévue dans le menu haut, à l'aide de la souris vous
> pouvez sélectionner le texte désiré, le copier, puis le
> coller dans une application Windows pour impression.", 64,
> "Aide sur l'aide"
> End Sub
>
> Sub m_imp_Click() ' impression papier RTF géré en lignes,
> colonnes et blancs insécables...
> Dim maxi As Long
> Dim combien As Long
> Dim avance As Long
> Dim texte_1 As String
> Dim texte_2 As String
> Dim o_s, p_s As String * 1
> Dim o_n As Integer
> Dim b As Long
> '
> reponse = MsgBox("Confirmez l'impression", vbQuestion +
> vbYesNo + vbDefaultButton2)
> If reponse <> vbYes Then Exit Sub
> '
> texte_1 = aideF.Text ' balance le contenu dans
> variable aideF = RTF
> maxi = Len(texte_1) ' taille tu texte
> combien = 1
> avance = 1
> For b = 1 To maxi
> o_s = Mid(texte_1, b, 1) ' extraction de chaque
> octet
> texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
> text_2
> o_n = Asc(o_s) ' contrôle la valeur ascii de
> l'octet extrait
> If o_n = 13 Then: combien = 0 ' saut de ligne
> If combien > 64 And o_n = 32 Then ' saut de page
> '
> If o_n = 32 Then ' gestion blanc insécable
> o_s = Mid(texte_1, b + 1, 1)
> If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
> = ";" Then
> texte_2 = texte_2 + o_s
> b = b + 1
> GoTo ici
> End If
> End If
> '
> texte_2 = texte_2 + Chr(13)
> texte_2 = texte_2 + Chr(10)
> combien = 0
> End If
> combien = combien + 1
> avance = avance + 1
> ici:
> Next b
> '''''''''''''''''''''
> Printer.FontName = "courrier new"
> Printer.FontSize = 12
> Printer.Print texte_2
> Printer.EndDoc
> End Sub
>
> Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
> Cancel = Cancel - 1
> Call ends
> End Sub
>
> Sub ends()
> Form11.Hide
> Unload Form11
> Form1.SetFocus
> End Sub
> ---------------
>
>
> "Barsalou" a écrit
> dans le message de news:
>
>> Je suis également intéressé.
>> Peut-être devrais-tu mettre ton code sur le forum.
Salut,
Envoyer le projet avec aurait été plus astucieux, car la il faut recrer un
projet, ajouter l'objet rtfbox, rajouter ta form... sinon on a le droit à
une zolie erreur...
En plus y a des goto partout :)
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
LE TROLL wrote:
> Salut, ça vaut ce que ça vaut, lol, mais ça marche,
> dis-moi si c'est ça que tu veux???
> Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
> -------
> Routines avec RTF (impression, recherche, poursuite de a
> recherche)
>
> OBJETS
> -1-
> aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
> dans FileName = path + Aide.rtf
> -2-
> textBox = quoi-cherche
> -3- menus
> m_cherche
> m_poursuivre
> m_imp
> m_aide
>
>
> ' aide
> '
> Dim ou As Long
> Dim ici As Long
> Dim recherche As String
> '
> Sub Form_Load()
> ' éditeur du logiciel pour lien Internet...
> If Form1.BRIDE = False Then: Form11.Caption > > Form1.titre
> If Form1.BRIDE = True Then: Form11.Caption > > Form1.titre_bride
> '
> Label1.Visible = False
> quoi_cherche.Visible = False
> End Sub
>
> Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
> touches
> If KeyCode = 113 Then: Call va_recherche 'F2
> If KeyCode = 114 Then: Call va_continue 'F3
> End Sub
>
> Sub m_recherche_Click()
> Call va_recherche
> End Sub
>
> Sub va_recherche() 'recherche
> Dim quoi As Integer
> '
> On Error Resume Next
> quoi_cherche = ""
> recherche = ""
> Label1.Visible = False
> quoi_cherche.Visible = False
> '
> recherche = InputBox("Aide" + Chr(10) + "Saisir le
> texte recherché ?")
> '
> quoi = Len(recherche)
> If quoi = 0 Then: Exit Sub
> '
> Label1.Visible = True
> quoi_cherche.Visible = True
> '
> quoi_cherche.Text = recherche 'affiche recherche
> ou = aideF.Find(recherche, 0, , 2 Or 8)
> aideF.SetFocus
> If ou = (-1) Then
> MsgBox "Texte non trouvé", 48
> Exit Sub
> End If
> aideF.SelStart = ou ' n°octet texte
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_poursuivre_Click()
> Call va_continue
> End Sub
>
> Sub va_continue() 'continue la recherche
> Dim quoi As Integer
> '
> If quoi_cherche = "" Then
> MsgBox "Aucune chaîne n'est en recherche", 48
> Exit Sub
> End If
> On Error Resume Next
> aideF.SetFocus
> aideF.SelStart = ou
> ou = ou + 1
> ici = aideF.Find(recherche, ou, , 2 Or 8)
> If ici = (-1) Then: MsgBox "Texte non trouvé", 48
> ou = ici
> aideF.SelStart = ou
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_aide_Click()
> MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
> (du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
> table des recherches ou dans la totalité de l'aide, copier
> un texte et le coller dans la boîte de saisie des
> recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
> + Chr(10) + "Continue la recherche demandée." + Chr(10) +
> Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
> papier prévue dans le menu haut, à l'aide de la souris vous
> pouvez sélectionner le texte désiré, le copier, puis le
> coller dans une application Windows pour impression.", 64,
> "Aide sur l'aide"
> End Sub
>
> Sub m_imp_Click() ' impression papier RTF géré en lignes,
> colonnes et blancs insécables...
> Dim maxi As Long
> Dim combien As Long
> Dim avance As Long
> Dim texte_1 As String
> Dim texte_2 As String
> Dim o_s, p_s As String * 1
> Dim o_n As Integer
> Dim b As Long
> '
> reponse = MsgBox("Confirmez l'impression", vbQuestion +
> vbYesNo + vbDefaultButton2)
> If reponse <> vbYes Then Exit Sub
> '
> texte_1 = aideF.Text ' balance le contenu dans
> variable aideF = RTF
> maxi = Len(texte_1) ' taille tu texte
> combien = 1
> avance = 1
> For b = 1 To maxi
> o_s = Mid(texte_1, b, 1) ' extraction de chaque
> octet
> texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
> text_2
> o_n = Asc(o_s) ' contrôle la valeur ascii de
> l'octet extrait
> If o_n = 13 Then: combien = 0 ' saut de ligne
> If combien > 64 And o_n = 32 Then ' saut de page
> '
> If o_n = 32 Then ' gestion blanc insécable
> o_s = Mid(texte_1, b + 1, 1)
> If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
> = ";" Then
> texte_2 = texte_2 + o_s
> b = b + 1
> GoTo ici
> End If
> End If
> '
> texte_2 = texte_2 + Chr(13)
> texte_2 = texte_2 + Chr(10)
> combien = 0
> End If
> combien = combien + 1
> avance = avance + 1
> ici:
> Next b
> '''''''''''''''''''''
> Printer.FontName = "courrier new"
> Printer.FontSize = 12
> Printer.Print texte_2
> Printer.EndDoc
> End Sub
>
> Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
> Cancel = Cancel - 1
> Call ends
> End Sub
>
> Sub ends()
> Form11.Hide
> Unload Form11
> Form1.SetFocus
> End Sub
> ---------------
>
>
> "Barsalou" <ericMettreUnPointbarsalou@wanadoo.fr> a écrit
> dans le message de news:
> eTKV6dVJFHA.1308@TK2MSFTNGP15.phx.gbl...
>> Je suis également intéressé.
>> Peut-être devrais-tu mettre ton code sur le forum.
Salut,
Envoyer le projet avec aurait été plus astucieux, car la il faut recrer un
projet, ajouter l'objet rtfbox, rajouter ta form... sinon on a le droit à
une zolie erreur...
En plus y a des goto partout :)
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
LE TROLL wrote:
> Salut, ça vaut ce que ça vaut, lol, mais ça marche,
> dis-moi si c'est ça que tu veux???
> Ci-joitn en fichier aussi (form + fichier rtf)-> vb6
> -------
> Routines avec RTF (impression, recherche, poursuite de a
> recherche)
>
> OBJETS
> -1-
> aideF = rtf (fichier Aide.rtf) incorporé à l'exe, chargé
> dans FileName = path + Aide.rtf
> -2-
> textBox = quoi-cherche
> -3- menus
> m_cherche
> m_poursuivre
> m_imp
> m_aide
>
>
> ' aide
> '
> Dim ou As Long
> Dim ici As Long
> Dim recherche As String
> '
> Sub Form_Load()
> ' éditeur du logiciel pour lien Internet...
> If Form1.BRIDE = False Then: Form11.Caption > > Form1.titre
> If Form1.BRIDE = True Then: Form11.Caption > > Form1.titre_bride
> '
> Label1.Visible = False
> quoi_cherche.Visible = False
> End Sub
>
> Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) '
> touches
> If KeyCode = 113 Then: Call va_recherche 'F2
> If KeyCode = 114 Then: Call va_continue 'F3
> End Sub
>
> Sub m_recherche_Click()
> Call va_recherche
> End Sub
>
> Sub va_recherche() 'recherche
> Dim quoi As Integer
> '
> On Error Resume Next
> quoi_cherche = ""
> recherche = ""
> Label1.Visible = False
> quoi_cherche.Visible = False
> '
> recherche = InputBox("Aide" + Chr(10) + "Saisir le
> texte recherché ?")
> '
> quoi = Len(recherche)
> If quoi = 0 Then: Exit Sub
> '
> Label1.Visible = True
> quoi_cherche.Visible = True
> '
> quoi_cherche.Text = recherche 'affiche recherche
> ou = aideF.Find(recherche, 0, , 2 Or 8)
> aideF.SetFocus
> If ou = (-1) Then
> MsgBox "Texte non trouvé", 48
> Exit Sub
> End If
> aideF.SelStart = ou ' n°octet texte
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_poursuivre_Click()
> Call va_continue
> End Sub
>
> Sub va_continue() 'continue la recherche
> Dim quoi As Integer
> '
> If quoi_cherche = "" Then
> MsgBox "Aucune chaîne n'est en recherche", 48
> Exit Sub
> End If
> On Error Resume Next
> aideF.SetFocus
> aideF.SelStart = ou
> ou = ou + 1
> ici = aideF.Find(recherche, ou, , 2 Or 8)
> If ici = (-1) Then: MsgBox "Texte non trouvé", 48
> ou = ici
> aideF.SelStart = ou
> aideF.Span " ,;:.?!+*-/=", True, True
> End Sub
>
> Sub m_aide_Click()
> MsgBox "RECHERCHER" + Chr(10) + "Cherche le mot saisi
> (du curseur vers le bas)." + Chr(10) + "Vouv pouvez dans la
> table des recherches ou dans la totalité de l'aide, copier
> un texte et le coller dans la boîte de saisie des
> recherches." + Chr(10) + Chr(10) + "POURSUIVRE LA RECHERCHE"
> + Chr(10) + "Continue la recherche demandée." + Chr(10) +
> Chr(10) + "IMPRESSION" + Chr(10) + "Outre l'impression
> papier prévue dans le menu haut, à l'aide de la souris vous
> pouvez sélectionner le texte désiré, le copier, puis le
> coller dans une application Windows pour impression.", 64,
> "Aide sur l'aide"
> End Sub
>
> Sub m_imp_Click() ' impression papier RTF géré en lignes,
> colonnes et blancs insécables...
> Dim maxi As Long
> Dim combien As Long
> Dim avance As Long
> Dim texte_1 As String
> Dim texte_2 As String
> Dim o_s, p_s As String * 1
> Dim o_n As Integer
> Dim b As Long
> '
> reponse = MsgBox("Confirmez l'impression", vbQuestion +
> vbYesNo + vbDefaultButton2)
> If reponse <> vbYes Then Exit Sub
> '
> texte_1 = aideF.Text ' balance le contenu dans
> variable aideF = RTF
> maxi = Len(texte_1) ' taille tu texte
> combien = 1
> avance = 1
> For b = 1 To maxi
> o_s = Mid(texte_1, b, 1) ' extraction de chaque
> octet
> texte_2 = texte_2 + o_s ' sauvegarde text_1 dans
> text_2
> o_n = Asc(o_s) ' contrôle la valeur ascii de
> l'octet extrait
> If o_n = 13 Then: combien = 0 ' saut de ligne
> If combien > 64 And o_n = 32 Then ' saut de page
> '
> If o_n = 32 Then ' gestion blanc insécable
> o_s = Mid(texte_1, b + 1, 1)
> If o_s = "?" Or p_s = "!" Or o_s = ":" Or o_s
> = ";" Then
> texte_2 = texte_2 + o_s
> b = b + 1
> GoTo ici
> End If
> End If
> '
> texte_2 = texte_2 + Chr(13)
> texte_2 = texte_2 + Chr(10)
> combien = 0
> End If
> combien = combien + 1
> avance = avance + 1
> ici:
> Next b
> '''''''''''''''''''''
> Printer.FontName = "courrier new"
> Printer.FontSize = 12
> Printer.Print texte_2
> Printer.EndDoc
> End Sub
>
> Sub Form_Unload(Cancel As Integer) ' end_système + <alt>_F4
> Cancel = Cancel - 1
> Call ends
> End Sub
>
> Sub ends()
> Form11.Hide
> Unload Form11
> Form1.SetFocus
> End Sub
> ---------------
>
>
> "Barsalou" a écrit
> dans le message de news:
>
>> Je suis également intéressé.
>> Peut-être devrais-tu mettre ton code sur le forum.