04-22-2007 06:33 AM
Hi James..
Listen, I found the Command who sets me the page break in Excel but when I press F1 I dont have the help on the commands ..
I need you to tell me(if u can) what parameter I need to insert to "BEFORE" on Excel_HPageBreakAdd command.
Thank u
Sruly.
04-23-2007 10:33 AM
04-24-2007 12:31 AM
04-25-2007 02:32 AM
Hi,
I understand that the use of these methods and their corresponding documentation is Microsoft specific (not related to CVI),
But, I'm stuck here and I need to finish that job and you are the only one who can help me..
So, any help will be appreciated...
I guessed that too ,that Before Required Object. A Range object. But I'm getting Error when I try to use this function.
Please tell me what i'm doing wrong...
static ExcelObj_Range ExcelRangeHandlePB = 0;
error = CA_VariantSetCString (&MyCellRangeV, "A36");
error = Excel_WorksheetRange (worksheet, NULL, MyCellRangeV, CA_DEFAULT_VAL, &ExcelRangeHandlePB);
error = Excel_RangeActivate (ExcelRangeHandlePB, NULL, &VPBreak);
error = Excel_HPageBreaksAdd (worksheet, NULL,ExcelRangeHandlePB ,&PageBreak );
Tha last function Excel_HPageBreaksAdd return Error..
Thank u again for your help...