Nhờ Thầy xem file giúp em, em thực hiện lệnh như file bài giảng nhưng hệ thống báo insertbeforemso chưa được khai báo và mất luôn tab vừa tạo mới ạ. Link file:
Chào bạn mình thử thấy chạy bình thường bạn nhé.
Da file chạy bình thường nhưng em muốn dùng lệnh insertbeforemso để tùy chỉnh vị trí thì bị lỗi ạ, thầy thử lại trên file giúp em hoặc sửa trực tiếp trên file giúp em ạ!
Chào bạn bạn đang muốn tuỳ chỉnh vị trí thế nào?
Da em muốn tùy chỉnh tab như sau (xem phần tô đậm gạch dưới), nhờ Thầy hướng dẫn giúp em, chứ em thực hiện như bài giảng thì bị lỗi ạ.
<customUI xmlns="http://schemas.microsoft.com/office/2...">
<ribbon startFromScratch="false">
<tabs>
<tab id="customTab" label="Phần mềm quản lí nhân viên"> => Trước tab Home
<group id="customGroup" label="Thông tin nhân viên">
<button id="customButton" label="Thêm nhân viên" imageMso="FilePrint" size="large" onAction="Callback" />
<button id="customButton1" label="Xóa nhân viên" imageMso="FileSave" size="large" onAction="Callback1" />
</group>
</tab>
<tab id="customTab1" label="Phần mềm tính lương"> => Sau tab Data
<group id="customGroup1" label="Thông tin lương">
<button id="customButton2" label="Tăng lương" imageMso="Spelling" size="large" onAction="Callback2" />
<button id="customButton3" label="Giảm lương" image="Natural" size="large" onAction="Callback3" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Chào bạn bạn thử như sau:
<customUI xmlns="http://schemas.microsoft.com/office/2..." >
<ribbon startFromScratch="false">
<tabs>
<tab id="customTab" insertBeforeMso="TabHome" label="Phần mềm quản lí nhân viên">
<group id="customGroup" label="Thông tin nhân viên">
<button id="customButton" label="Thêm nhân viên" imageMso="FilePrint" size="large" onAction="Callback" />
<button id="customButton1" label="Xóa nhân viên" imageMso="FileSave" size="large" onAction="Callback1" />
</group>
</tab>
<tab id="customTab1" insertBeforeMso="TabReview" label="Phần mềm tính lương">
<group id="customGroup1" label="Thông tin lương">
<button id="customButton2" label="Tăng lương" imageMso="Spelling" size="large" onAction="Callback2" />
<button id="customButton3" label="Giảm lương" image="Natural" size="large" onAction="Callback3" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Da em đã thực hiện được rồi. Cám ơn Thầy nhiều ạ
Chúc bạn học tốt cùng gitiho