Alignment is not working

Alignment is not working

Forum member · Aug 1, 2006
Can you tell me what are the possible reasons thatw oould cause the cell or Row Aligment to fail?

Re: Alignment is not working

Support · Aug 2, 2006
Hello, Are you setting the Align and VAlign property of the Cell and Row equal to DPDF_Align and DPDF_VAlign enumeration respectively? The sample code should look something like this: Setting Cell Alignment: MyCell.Align = DPDF_Align_Center MyCell.VAlign = DPDF_VAlign_Center Setting Row Alignment: MyRow.Align = DPDF_Align_Center MyRow.VAlign = DPDF_VAlign_Center Thanks, ceTe Software Support Team

Re: Alignment is not working

Forum member · Aug 2, 2006
YEs like this SET MyCell2 = MyRow1.AddCell("",DPDF_Font_HelveticaBold, 10, "000000", "FFFFFF") SET MyCellTable2 = MyCell2.SetTable( 0, 15, 105, 80 ) MyCellTable2.BorderWidth = 1 'MyCellTable2.VAlign = DPDF_VAlign_Bottom MyCellTable2.AddColumn ( 109 ) SET MyRow1T2 =MyCellTable2.AddRow( ) MyRow1T2.AddCell("") SET MyRow2T2 =MyCellTable2.AddRow( ) MyRow2T2.AddCell "",DPDF_Font_HelveticaBold, 10, "000000", "FFFFFF",1 SET MyCell1Row3T2 =MyCellTable2.AddRow( ) MyCell1Row3T2.AddCell "",DPDF_Font_HelveticaBold, 10, "000000", "FFFFFF",1 SET MyCell1Row4T2 = MyCellTable2.AddRow( ) MyCell1Row4T2.Align = DPDF_Align_Right MyCell1Row4T2.AddCell "Date: "& REquest("InsertDate"),DPDF_Font_HelveticaBold, 10, "000000", "FFFFFF",1

Re: Alignment is not working

Support · Aug 2, 2006
Hello, So are you getting the desired results or your problem is not yet solved? If not, are you getting any errors or does the alignment not work? Thanks, ceTe Software Support Team

Re: Alignment is not working

Forum member · Aug 2, 2006
Sorry The alignment is not working

Re: Alignment is not working

Support · Aug 2, 2006
Hello, I was able to set the alignment to right and the text displayed fine. Can you please send us over the code and the output PDF file to our [^a|mailto:support@cete.com|Support Team^] and also mention which row in the table does not show the alignment behavior not working? Thanks, ceTe Software Support Team

Re: Alignment is not working

Forum member · Mar 15, 2007
I have code working that calls the DPDF_VAlign_Bottom enumeration on a FormattedTextArea. The value is set to 3 but the VAlign ends up top. I set the value to 2 and the VAlign is correct(bottom). Setting the value to 1 puts the VAlign to center. I am running Coldfusion MX 7 using COM <cfset DPDF_VAlign_Bottom = 2> <cfset MyTextArea.VAlign = DPDF_VAlign_Bottom>