Image error

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
Txoldo
Posts: 1
Joined: Fri Sep 09 2005

Image error

Post by Txoldo »

Hi,

Sorry, but I don´t speak englis good.

When I insert a image in a document, this image not always show. This error aparently to occurre randomly.

PDF Creator not return any error.

Why? Please it's very ungent.

The code:
Dim CoeficienteTWIPS As Double = Page_TEMP.GetPageFormat().Width
CoeficienteTWIPS = CoeficienteTWIPS / 210

Dim Objeto_TEMP As Amyuni.PDFCreator.IacObject

Objeto_TEMP = Page_TEMP.CreateObject(Amyuni.PDFCreator.IacObjectType.acObjectTypePicture, "Imagen" & Contador_Objetos_PDF)
With Objeto_TEMP
.Attribute("FileName").Value = Archivo
.Attribute("Page").Value = 1
.Attribute("Left").Value = X * CoeficienteTWIPS
.Attribute("Top").Value = Y * CoeficienteTWIPS
.Attribute("Right").Value = (Ancho + X) * CoeficienteTWIPS
.Attribute("Bottom").Value = (Alto + Y) * CoeficienteTWIPS
.Refresh()
End With
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please specify what do you mean by sometimes it appears sometime it doesn't.

If you try to use the same picuture while using the same code, does the picture sometime appear in the document and sometime doesn't?

If you are using the PDF Creator as a control in your form and you are viewing the pdf file right when creating it, please try to refresh the page and not the object itself.

If you are using a reference to the PDF Creator and you are saving the created file on disk, please tell us how you are saving the file.

Thanks.
Post Reply