 |
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

February 7th, 2011, 07:06 AM
|
Registered User
|
|
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Error ' ASP 0106: 80020005 ', not corresponding types
Hello ,
it's my first post in this forum
Here we are, I use the class FDPF to generate a pdf which contains a message to be shown in Arabic.
Here is the code of the page test.asp:
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!-- #include file="fpdf.asp " -->
<%
Set pdf=CreateJsObject("FPDF")
set objInformations = server.createobject("ADODB.RECORDSET")
pdf.CreatePDF()
pdf.SetPath("fpdf/")
pdf.Open()
pdf.AddPage()
'----------------------------------------------------------------------
' Entête du document
'----------------------------------------------------------------------
pdf.AddFont "amien"
'pdf.SetFont "amien", "",6
pdf.SetTextColor 0,0,0
pdf.Cell 0,5, "الاتحاد المغربي" ,"",1,"L"
pdf.Cell 0,5,"","",1,"C"
pdf.Close()
pdf.Output()
%>
and here what i get :
<p>Objet Response</font> <font face="Arial" size=2>error 'ASP 0106 : 80020005'</font>
<p>
<font face="Arial" size=2>not corresponding types</font>
<p>
<font face="Arial" size=2>/ing2010/ing_scripts/fr/pdf/fpdf.asp </font><font face="Arial" size=2>, line 892</font>
in the line 892 i have this :
Code:
Response.BinaryWrite(outB.Read())
fpdf is here : http://www.mediafire.com/?krut876p02r388p
any ideas please ?
|

February 7th, 2011, 12:01 PM
|
Registered User
|
|
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
where are you my friends???
come on guys please ,
i really need your help , if anything is not clear enough , ask me and
i 'll be pleased to answer
|

February 15th, 2011, 02:19 AM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote missing in line - pdf.Cell 0,5, "الاتحاد المغربي" ,"",1,"L"
|

February 19th, 2011, 06:10 AM
|
Registered User
|
|
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by itHighway
Quote missing in line - pdf.Cell 0,5, "الاتحاد المغربي"
,"",1,"L"
|
accually , it is not the reason , the paste was wrong ,
but the problem is that fpdf doesn't treat right to left langage , so my problem is not going to work , one solution left and it's with asp.Net
good luck for everyone and thank you for answering me ;)
|
|
 |