How to merge cells in Excel

Hanen
Member Posts: 281
Hello,
I have a report to export in Excel and I have to merge two cells.
Any one knows how can I do that???
Thanks for your help :thumbsup:
Regards
Hanen TALBI
Hanen TALBI
0
Answers
-
pcodCell := 'A1:C1'; autXWorksheet.Range(pcodCell).Cells.Merge;
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
[/code]I'm using the Buffer Excel Table table I'm not workind directly with the report
How can I deal with that problem???
Do you have an idea?
I'll be greatful for the answer.ExcelBuf.NewRow; ExcelBuf.AddColumn('No Customer,FALSE,'',TRUE,FALSE,TRUE,''); ExcelBuf.AddColumn('Customer Name',FALSE,'',TRUE,FALSE,TRUE,'');
Regards
Hanen TALBI0 -
That functionality is not available.
You'll have to make your hands dirty and add some code to this Excel Buffer table in order to merge cells.
PS: Why did you marked this topic as [Solved], while it isn't?No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Good morning
It works now but I need to center my data is there a way to do that??? :oops:
Thanks for your help :thumbsup:Regards
Hanen TALBI0 -
codCell := 'A1'; intAlign := -4108; autXWorksheet.Range(codCell).HorizontalAlignment := intAlign;
Next time, visit http://msdn.microsoft.com/en-us/library/bb213535.aspx to explore the Excel Object Model.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thanks :thumbsup:
Regards
Hanen TALBI0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions