Hello Sir/Madam,
For you Reference I am using below syncfusion version,
"@syncfusion/ej2-react-documenteditor": "^20.4.42",
I am drawing images(base64) in table row.
For example I have 5 images and layout is 1*1 then I draw a table with row to display 5 images on 5 pages, as of now my code is working fine for displaying images but after display images when I change Page Setup orientation to landscape its throwing error mentioned in subject.
For your better understanding I am sharing my main function code which display/draws images.
Hi Shweta,
The mentioned issue has been resolved in our latest versions. So please upgrade both the client and server sides to the latest (v22.2.12) version packages to resolve this issue. and we have attached the sample for your reference, so use the below sample to check this issue.
Sample: Bhhw27 (forked) - StackBlitz
NPM Link: (Client-side)
@syncfusion/ej2-react-documenteditor - npm (npmjs.com)
NuGet link: (Server-side)
https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.Core/
https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.MVC5/
Hi Shweta,
We were unable to reproduce the reported issue, and we have attached the sample we used to try to replicate the issue. Could you please share the modify the attached sample to reproduce the mentioned issue? Thereby, we will analyze further and provide you with the appropriate solution at the earliest.
Sample - Bhhw27 (forked) - StackBlitz
Regards,
Balamurugan S
Dear Sir,
I checked your sample code which loads images correctly but when we change page orientation then body container not changes as expected.
while I tried your code in my application still I am having same issue for 1*1 and 1*2 layout, also your moveCursorToNextCell, moveCursorToNextRow function just worked fine for 1*1 layout its not working for 1*2, 2*2, etc layout.
can you please share a sample where my all layout like 1*1, 1*2, 2*2, 3*3, etc will work.
one more important point that I already mentioned above for 1*1,1*2 layout container widget errors are coming on page setup orientation change.
so I want to know how page setup event work in your sample? as in my application I need to handle documentEditor contentChange for this where I clear all drawings and redraw it again.
in my first post you can see I used OnReset funstion to clear document editor on PageSetup call
is there any other way by using which we can handle page setup events other than this, please explain
Thank You,
Shweta
Swetha, we have attached a basic sample that you can customize yourself based on your logic. Additionally, we have also attached a UG Documentation for reference.
Sample: https://stackblitz.com/edit/react-uncvqw-w3h2tu?file=index.js,package.json
UG Documentation: https://ej2.syncfusion.com/react/documentation/document-editor/how-to/insert-text-or-image-in-table-programmatically
Kavitha,
Thank you sharing this sample application but may I know how page setup event work in this and in earlier sample. as I told you in last post when we change page orientation then body container not changes as expected, it looks like its working but actually its not working for example when I change page setup orientation to landscape page body container not loading/resizing content like landscape as you can see width of the container is same like portrait orientation. so may I know why page setup orientation not working as expected in your sample?
so again I am asking same question which I have asked in my last post, in my application I need to handle documentEditor contentChange for handling page setup event where I clear all drawings and redraw it again.
in my first post you can see I used OnReset funstion to clear document editor on PageSetup call
is there any other way by using which we can handle page setup events other than this, please explain
Thank You,
Shweta
Hi Shweta,
As per MS Word behavior, when we change the page orientation from portrait to landscape, the table isn't resized. Same behavior in documentEditor also.
The width of the landscape container isn't the same as in portrait orientation. Please refer to the attached video below for your reference.
//Is there any other way by which we can handle page setup events other than this? Please explain.
DocumentEditor doesn't have an event for page setup. So, you can add custom logic to delete the table and re-insert it.
Regards,
Balamurugan S
Hello Balamurugan,
Thank you for your reply.
I have another query about image size my portrait image is not fit to container by height though I have given image height same of container height.
For Example, I have 2*2 layout with 4 images where my first image is portrait and other are rectangle size, I applied resize factor to images and draw it but my first image is not fit to container by height if i have given height as container height while remaining 3 rectangle images are fit to container by width.
so may i know why my first images is fit to container by height.
I am sharing you my code for your reference
In short If I have put image at center vertically and horrizontally and also given height of image same of container height still image showing gap from top and bottom.
please see attached image screenshot for your reference, where you can see my first image issue.
Thank You,
Shweta
Hi Shweta,
Based on the information, you are facing an image issue in the first cell. Could you please explain in detail what you expected the image height to be in the first cell? We suspected you wanted to fit the image without a gap between the top and bottom. If the same is what you expected, could you please share the code that we use to resize the image in the resizeImgTag method? We can see the inserted images are different in the cells. So, could you please share the two different images? It could be helpful to reproduce the reported issue on our end. Thereby, we will analyze further and provide you with the appropriate solution at the earliest.
And the thing is, we suspected you were facing an image gap issue due to the top and bottom margin values. So, please check out this below, in which cell you want to remove the gap.
Regards,
Balamurugan S
Hello,
Yes you are right I wanted to fit the image without a gap between the top and bottom.
Note : when image is portrait I want to fit image without a gap between the top and bottom and when image is landscape I want to fit image without a gap between the left and right.
as you requested sharing the code that we use to resize the image in the resizeImgTag method,
resizeImgTag = (obj, IW, IH, cellH, cellW) => {
let pH = cellH;
let pW = cellW;
let cellHeight = cellH;
let cellWidth = cellW;
let h, w, l, t, imageHeight, imageWidth;
try {
if (IH == IW) { // same height width image
if (pH < pW) {
imageHeight = pH;
imageWidth = parseInt(IW * parseInt(cellHeight) / IH);
}
else {
imageWidth = pW;
imageHeight = parseInt(IH * parseInt(cellWidth) / IW);
}
}
else if (IH > IW)//image is potrait
{
h = pH;
w = parseInt(IW * parseInt(h) / IH)
if (w > pW) {
imageWidth = pW;
imageHeight = parseInt(IH * parseInt(cellWidth) / IW);
}
else {
imageHeight = h;
imageWidth = w;
}
}
else //landscape
{
w = pW;
h = parseInt(IH * parseInt(w) / IW)
if (h > pH) {
imageHeight = pH;
imageWidth = parseInt(IW * parseInt(cellHeight) / IH);
}
else {
imageHeight = h;
imageWidth = w;
}
}
return [imageWidth, imageHeight];
} catch (e) { }
}
also tried your below topMargin, bottomMargin solution which is not worked for me
Hi Shweta,
Sorry for the inconvenience. We aren't aware of what you did in the getLayout() method. We have attached a basic sample. So, Could you please modify the attached sample to replicate the reported issue? It could be helpful to replicate the issue on our end. Thereby, we will analyze further and provide you with the appropriate solution at the earliest.
Sample - Tc43en (forked) - StackBlitz
Regards,
Balamurugan S
Hello,
Its not about replicate the issue in your sample as we know lot of things are working in you shared sample project while those things are not working in my project because of this I have shared you near about all functions to you.
here I am going to share you getLayout() method for your reference where I just select layout from it.
so I request you please suggest any solution for the issue mentioned in posts.
also I am sharing one base64 image for your reference(image width = 230, Image Height = 512),
data:image/JPEG;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjI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Q+K9NtL3xo+mSy2NjqNq8dlGkTDc+QAQAPk6uRnGAe1TxvaRWvgfXLlJTpVkDa3BhzmGRJC4zg5GQQ3HJANJbq/l/X4fiJ9bef9fj+BzGt+H7jRBBI9xb3ME7SIk1uW27422uvzKpyD7YORgmrNz4QvbWxe4lurQSQxRT3FsGcy28UhwrsNuMdMhSSNwyK09c1XSNdj0+1vdajeeCS7llvbXT5I4UVzuVBFtTLMw5YA9eSam1TxHpdzBq93ZTSS3+t2VtaLYLbuGhZdgclsbcYjGACSSw4FJN8vn/AF/X9XKdr/13X6a/1Y5fW9GuNC1E2Vy8Up8tJUlhYlJEYZDKSAcfhRWt45zBqmm6bIQbnT9Kt7e4Gc7JPmYr9QGWimI//9k=
Note : during the time I will try to replicate the reported issue in your shared sample.
Thank You,
Shweta
Hi Shweta,
We suspect the issue occurred due to setting the particular cell's top margin and bottom margin. The actual behavior of cell margin consideration is which cell has the highest margin value in the row; that value also reflects in the other cells. So, could you please select the row and set the top and bottom margin values to 0.
Code Snippet:
this.editor.current.container.documentEditor.selection.selectRow(); this.editor.current.container.documentEditor.selection.cellFormat.topMargin = 0; this.editor.current.container.documentEditor.selection.cellFormat.bottomMargin = 0; |
If the issue persists, could you please modify the attached sample to replicate the reported issue?
Sample - Tc43en (forked) - StackBlitz
Regards,
Balamurugan S
Hello,
I have another query regarding border Settings linewidth, how can we minus lineWidth from page height and page width.
borderSettings defination is as follows,
where my lineWidth changes from 1 to 8.
I want to manage/draw images in my layout with lineWidth to seperate each cell.
looking forward for any help.
Thank You,
Shweta
Hi Shweta,
We weren't sure about your requirements based on the information. In the API approach, we suspect you want to apply a border to the outside of the table, and we also assume you will need to obtain the line width of borders in each column.
So, could you please describe in detail what you attempted to accomplish on your end?
Regards,
Balamurugan S
Hello,
Yes I want to apply a border to the each cell of table and I managed it by using borderSettings but when I used this borderSettings then my image in a cell get disturbed, disturbed means after applying line width using borderSettings then image alignment get disturbed.
for example, line comes over image area or full image not visible or left and right margin issue
so my question is that why image alignment get disturbed or changed after applying line width using borderSettings.
borderSettings defination is shared you in last post and I applying borderSettings to cell like as follows,
so let me know how to manage image in cell with line width.
Thank You,
Shweta
Hi Shweta,
Based on the query, we attempted to recreate the mentioned issue. We are facing the issues of image clipping and right margin issues, like below.
Could you please confirm whether this is the same issue you are facing on your end? If it is not, please modify the attached sample to replicate the issue.
Please find attached a sample and video for your reference.
Sample - https://stackblitz.com/edit/react-sbtzpg-ap1c6e?file=index.js,index.html
Regards,
Balamurugan S
Hello Balamurugan ,
Yes I am facing same issue.
I managed to draw a image fit to container as per available container height and width and as per Image height and width, now if I applied borderSettings to table cell then it disturb things which I have already mentioned in my last post.
Can you please figure out how to solve this issue.
Thank You,
Shweta
Hi Shweta,
We can reproduce the reported issue with the provided details. Currently, we are validating and will get back to you by January 10, 2024.
Regards,
Balamurugan S
Hi Shweta,
We need an additional timeline to validate this scenario. We will update further details soon.
Regards,
GowthamKumar J
Shweta, we have verified the mentioned situation in MS Word and observed that the image is cut off on the right side.
The width of the cell/image remains unchanged after applying the border.
Hello Sir/Madam
first of all thank you for your last reply.
Now I have another query for you which is as follows,
Lets assume I have table of 3 rows and 3 columns with cell format background color black and I want to merge first three cell vertically by using Merge Cell then merge cell is working fine but merged cell background color get changed to different than black color.
For you reference I have attached a screenshot...
as you can see first merge column background color is different than black color.
Please suggest a solution for this?
Thank You,
Shweta
Hi Shweta,
We are checking on the reported behavior we will let you the updates by June 28, 2024.
Regards,
Kesavan.
Hi Shweta,
We were unable to reproduce the reported issue in our latest version, v26.1.39. We have attached a sample for your reference.
Could you please confirm that whether you are able to reproduce the issue in below sample?
If yes, could you please share the issue reproducible sample with video. It will be helpful to validate further and provide you the solution at earliest.
Sample: 7cf7mg (forked) - StackBlitz
Regards,
Dhanush S
Hello Sir/Madam,
I have another query which is, When we change page orientation to landscape and go for the print preview in this case one extra page is get added.
however its working fine in case of portrait orientation.
Please see attached screenshot for your reference,
Hi Shweta,
In the Document Editor, when you initiate the print function, we generate the content in a printable format and send it to the browser's native printing system. However, due to browser limitations, we are unable to fully customize or control the printing process programmatically. As a result, when the print dialog appears, the user must manually choose the desired settings, such as paper size, orientation, and margins, from the browser's print options before proceeding with the print job.
Sample: 92jfaz (forked) - StackBlitz
Regards,
Dhanush S
Attachment: Print_(1)_6e969f99.zip
Hello Sir/Madam,
How can we set text overflow ellipsis to cell in header section?
as of now when my text is big in length then it goes to second line and it disturb the body content GUI as you are already aware that I am displaying/calculating body content height as per header and footer section height.
when any text big in size, it goes to second line and increases the height of header and it disturb the body content.
so how can we achieve or set cell text overflow ellipsis?
OR is there any other alternative to set fixed width of header section cell?
Regards
Shweta
Hi Shweta,
The document editor follows MS Word's functionality. When content exceeds the cell's width, it automatically wraps to the next line, similar to MS Word. Please refer to the video for further details.
Regards,
Dhanush S
Hi,
I just came to know that document editor not working properly, when we change page orientation one extra page get added. we have single page but when we change page orientation then that single page data get divided into two page that is one extra page get added.
below is your url you can check over there,
https://stackblitz.com/edit/react-uhejqg-vbfevt?file=index.js
currently I am using document editor version 29.1.41
Note: earlier it was working fine means when we toggle page orientation then number of pages remains same.
please let me know how to resolve this issue?
Hi,
I just came to know that document editor not working properly, when we change page orientation one extra page get added. we have single page but when we change page orientation then that single page data get divided into two page that is one extra page get added.
below is your url you can check over there,
https://stackblitz.com/edit/react-uhejqg-vbfevt?file=index.js
currently I am using document editor version 29.1.41
Note: earlier it was working fine means when we toggle page orientation then number of pages remains same.
please let me know how to resolve this issue?
Hi Shweta,
We are currently reviewing your query based on the information provided. We will get back to you with further updates on August 28,2025.
Regards,
Akshaya
Hi Shwetha,
We have thoroughly reviewed the provided details and observed that in the Document Editor, an additional page is added when the page orientation is changed to landscape. This behavior is expected and not a defect.
When the orientation is switched to landscape, the height of the page is reduced, which can result in the existing content no longer fitting within the original page layout. To preserve the document's structure and ensure that all content is properly accommodated, the editor automatically adds extra pages.
This behavior is consistent with how Microsoft Word handles orientation changes, and we follow the same approach to maintain compatibility and a familiar user experience.
Please let us know if you need further clarification.
Regards,
Akshaya