找回密码
 立即注册

QQ登录

只需一步,快速开始

谢朵
注册会员   /  发表于:2023-5-19 11:05:39
11#
JoestarXu 发表于 2023-5-19 10:49
您好,如下图所示,startColumnOffset超过了单元格宽度是不会被恢复为默认值的。

我们用的版本比较低,是12.3的版本。也不会嘛
回复 使用道具 举报
JoestarXu
超级版主   /  发表于:2023-5-19 11:27:18
12#
您好,我用12.2的版本试了一下,也是不会的,所以12.3版本应该也是不会的。

image.png748481750.png
回复 使用道具 举报
谢朵
注册会员   /  发表于:2023-5-19 13:32:41
13#
JoestarXu 发表于 2023-5-19 11:27
您好,我用12.2的版本试了一下,也是不会的,所以12.3版本应该也是不会的。

好的,谢谢啦。我现在用sheet.pictures.add增加了浮动的图片后,我发现picture.width(10)。没有任何作用,他还是原来的宽度。这是为什么呀?
回复 使用道具 举报
JoestarXu
超级版主   /  发表于:2023-5-19 13:58:32
14#
谢朵 发表于 2023-5-19 13:32
好的,谢谢啦。我现在用sheet.pictures.add增加了浮动的图片后,我发现picture.width(10)。没有任何作用 ...

您好,您在对picture指定宽高的时候有两种方法,这两种方法不能混用,如下图:

image.png252454528.png

上面的方法会覆盖下面的方法导致它无法生效。
回复 使用道具 举报
谢朵
注册会员   /  发表于:2023-5-19 14:04:43
15#
JoestarXu 发表于 2023-5-19 13:58
您好,您在对picture指定宽高的时候有两种方法,这两种方法不能混用,如下图:

你好,我写了一个demo。 我有一个数组,元素是base64的图片。我把两个单元格合并为一个,然后想在这个合并过后的单元格中插入两张图片。然后需要图片并列显示。但是我现在发现他是重叠的。

demo-sjs-15.rar

5.43 KB, 下载次数: 422

回复 使用道具 举报
JoestarXu
超级版主   /  发表于:2023-5-19 14:43:10
16#
谢朵 发表于 2023-5-19 14:04
你好,我写了一个demo。 我有一个数组,元素是base64的图片。我把两个单元格合并为一个,然后想在这个合 ...

您好,请问您是要达到这种效果吗?


image.png503670653.png
回复 使用道具 举报
谢朵
注册会员   /  发表于:2023-5-19 14:55:48
17#
JoestarXu 发表于 2023-5-19 14:43
您好,请问您是要达到这种效果吗?

我从您上传的图片中没有看到合并单元格的样式。所以我设置了一下我的demo。大概就是我图片中的效果。FG和合并为一个单元格,FG中有两张图片
FK8ZIP(2@MAITRPDWG3BC93.png
回复 使用道具 举报
JoestarXu
超级版主   /  发表于:2023-5-19 15:07:01
18#


您好,参考以下代码:

  1.         $(document).ready(function () {
  2.             var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 3 });
  3.             var sheet = spread.getActiveSheet();
  4.             sheet.addSpan(16, 5, 1, 2);
  5.             var arr = [
  6.                 "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALgAAAA9CAYAAAAeTqOsAAAAAXNSR0IArs4c6QAADppJREFUeF7tnQm0TWUbxx+ZImPmeSzjQplCZIhoUWYSCk1EqGQmM5kqZJawzLPIMjWYF1moUCkZi0JmGb/1e761v+9+97vu2eecfc7e233ftVr3uuecfd79PP/3ef/P/3neXaK7d+/eFTOMBXxugR9//FF69OghX331lYwbN05atmypd5TIANznnk2g0ycunz9/XtatWyeLFi2Sr7/+Wv7++2957LHHpFWrVvLmm29K4sSJDcATKD58fdvXr19XUPfr109+++03vZdHHnlEI3e1atUkWbJk/7k/E8F97eqENflDhw7JlClTZOPGjfLdd99JpkyZpH79+tK4cWMpW7aspE2bVhIlSvQ/RjEAT1gY8d3d3rp1S86cOSODBw+WiRMnKoDTp0+vHLtXr16SJUuWeO/JANx3Lk8YEwbYO3fulE8//VSWLl2qfLtAgQLSsWNHqVWrlhQpUuT/onVcljEATxh48cVdkjjeuHFDfv75Z+nbt6+sWbNG+FuuXLnk3Xfflddff10eeOCBoO7FADwoc5k3R8oCN2/elG3btsmkSZNUEYGWVKhQQV555RWpV6+e0pLY/NrOXAzA7VjJvCdiFiBiHzx4UKZNm6YcO2nSpFK4cGGN4M8++6w8+OCDYX237wF+9epV+fPPPwXOljVrVkmZMmVIKz0sK5oPh2SBkydPSqdOnTRy//XXX1KuXDnVr6tXr66+DCVix56ILwEO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NhGbHIMF7URrrlv367XvtQVwJk0U59QHdILOP6ceVE6vNRVPdHCKQ0Q7tHGqlZzqYYfwcxSznvrEaXR2Ies5KYCc32l8Yjd85plntMPP/B8qnF0itgHu7Nf+92qUrwEzjmZnILmifE/0JpL7TfOOy05IfnT2EcGhd7TEUonlIDV9JH6lX5HChJPXdR3gSIwkkLSr8pM2UU68ENXpy/Zz9HbSUeZaoVnAdYDDP5HCeOoTMiP9ykiGRHPADTXipwF6aA5O6J9yHeAAmONTJJtwfMr8lO/h+JTpaWOlDYD2TwPyhA7X4O/fdYAzZTgqhw7QfAE1UR0wc9qFwghau3n2d/DONZ8Q8QTAcQSlfyI4PRscQCC5RFrj8WaA3PQ8G7iGYgHPADyUyZvPGAsEsoABeCALmdd9bQEDcF+7z0w+kAUMwANZyLzuawsYgPvafWbygSxgAB7IQuZ1X1vAANzX7jOTD2QBA/BAFjKv+9oCBuC+dp+ZfCALGIAHspB53dcWMAD3tfvM5ANZ4F+W2jTCzSfRKwAAAABJRU5ErkJggg=="
  7.             ]

  8.             for (let i = 0; i < arr.length; i++) {
  9.                 console.log(i);
  10.                 var picture = sheet.pictures.add("f" + i, arr[i], 0, 0, 100, 100);
  11.                 picture.pictureStretch(GC.Spread.Sheets.ImageLayout.zoom);
  12.                 picture.startRow(16);
  13.                 picture.startColumn(5 + i);
  14.                 picture.startRowOffset(0);
  15.                 picture.startColumnOffset(0);
  16.                 picture.isVisible(false);

  17.                 picture.endColumnOffset(0);
  18.                 picture.endRowOffset(0);
  19.                 picture.endRow(17);
  20.                 picture.endColumn(6 + i);
  21.                 picture.isVisible(true);
  22.             }
  23.         })
复制代码



回复 使用道具 举报
谢朵
注册会员   /  发表于:2023-5-19 15:47:00
19#
JoestarXu 发表于 2023-5-19 15:07
您好,参考以下代码:

您好,感谢。这样已经是我想要的效果了。太感谢了。我会到我项目里面去实验一下的。
回复 使用道具 举报
JoestarXu
超级版主   /  发表于:2023-5-19 16:12:04
20#
谢朵 发表于 2023-5-19 15:47
您好,感谢。这样已经是我想要的效果了。太感谢了。我会到我项目里面去实验一下的。

不客气哈,后续有问题随时开贴提问。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部