Is there anything that needs to be done differently to load a bitmap into a pdf versus a jpeg. It appears a Jpeg will load, but not a bitmap?
I do the following
Create
Set the filename
Set the Coordinates
if i do this with a jpeg BITMAPDATA has data,
if i Do this with a bitmap Nothing in BitmapData?
Sample code follows
oDest = CREATEOBJECT("PDFCreactiveX.PDFCreactiveX.3")
oDest.SetLicenseKey(CompanyName,ActivationCode)
oDest.InitBlank()
*oDest.DoCommandTool(acCommandToolPageView)
oDest.CurrentPage = 1
oDest.CreateObject(acObjectTypePicture,"Pic0")
lcFileName = ADDBS(SYS(5)+SYS(2003))+"joe.jpg"
oDest.ObjectAttributeStr("Pic0","FileName",lcFilename)
oDest.ObjectAttributeStr("Pic0","Top","1000")
oDest.ObjectAttributeStr("Pic0","Left","1000")
oDest.ObjectAttributeStr("Pic0","Right",ALLTRIM(STR(oDest.PageWidth)))
oDest.ObjectAttributeStr("Pic0","Left",ALLTRIM(STR(oDest.PageLength)))
oDest.RedrawObject("Pic0")
oPic = oDest.GetObjectByName("Pic0")
oPic.Refresh()
* Set the document in Run mode
* NEVER CHANGE THE MODE USING .ReportState = acReportStateRun
oDest.DoCommandTool(acCommandToolRunDocument)
oDest.Save("test2.pdf",acFileSaveView)
Bitmaps
Hello,
inserting a picture whether it is a jpeg or bitmap is simlar.
Please check the following links
http://www.amyuni.com/forum/viewtopic.p ... ght=bitmap
http://www.amyuni.com/forum/viewtopic.p ... ght=bitmap
Hope this helps.
inserting a picture whether it is a jpeg or bitmap is simlar.
Please check the following links
http://www.amyuni.com/forum/viewtopic.p ... ght=bitmap
http://www.amyuni.com/forum/viewtopic.p ... ght=bitmap
Hope this helps.