ciao ragazzi... visto che non ho trovato una funzione in fpdf che mi faccia quello che voglio cioè obbligare il testo anche se copiato da wword nella pagina...
(eppure.. io so sicuro che qualcosa ci deve essere.....)
vabbè alla fine stavo a provare con questa funzione trovata nel forum e che mi taglia le stringhe lunghe
la stringa per prova è questa:
Pippo pluto…
Il Timing per gionoa , dasdasd e ang asdasdas iomi
Le leddddsioni ddddd che nell’età ddddd vengono, per ddddd diversi, candidate alla dddd ddddd, non xxxx xxx di urgenza. xxx così di xxxxx in xxxxxx nel xxxxxxx o nel conxxxxxxsigliare il xxxxxxxx e il come xxxxxxxx xxxxxxxxxx xxxxxxxxx.
la funzione che sto utilizzando e che forse ho modificato male..... è questa
Codice PHP:
Function dividiStringa(sStr, iInizio, iProg)
Dim sTesto
Dim lLenght
Dim sFinal
If Len(sStr) > 20 Then
If Mid(sStr, 21, 1) = " " Then
sFinal = Mid(sStr, 1, 20) & vbCrLf '& "
"
'response.write(sFinal)
sTesto = Mid(sStr, 22, Len(sStr) - 21)
iProg = iProg + 1
dividiStringa sTesto, 1, iProg
Else
lLenght = InStrRev(Mid(sStr, 1, 20), " ")
If Not lLenght = 0 Then
sFinal = Mid(sStr, 1, lLenght) & vbCrLf ' & "
"
'response.write(sFinal)
sTesto = Mid(sStr, lLenght + 1, Len(sStr) - lLenght)
Else
sFinal = Mid(sStr, 1, 20) & vbCrLf '& "
"
' response.write(sFinal)
sTesto = Mid(sStr, 20 + 1, Len(sStr) - 20)
End If
iProg = iProg + 1
dividiStringa sTesto, 1, iProg
End If
ElseIf Len(sStr) <= 20 And Len(sStr) <> 0 Then
sFinal = sStr
' response.write(sFinal)
End If
dividiStringa=sFinal
End Function
e poi
pdf.MultiCell 0,4, dividiStringa(testo_abstract, 1, 1),1,"L"
ma lui mi taglia a
Pippo pluto…
Il
troverò una soluzione prima o poi... !!!??
buu
ggrazie
ragazzi e buon week end