如何让 FoxPro 在以 Metric 格式列出的英文报告上对齐网格?

发布于 2024-08-17 16:17:27 字数 853 浏览 4 评论 0原文

因此,我最近不得不创建一份模拟加拿大海关表格的报告。问题在于报告打印在 11" x 14" 纸张上,但使用公制布局。由于我的 FoxPro 安装在具有美式英语测量单位的计算机上,因此 FoxPro 尝试使用英制标尺,并对基于英寸的测量进行对齐网格。这显然会产生一些小的设计问题。

我知道这些报告实际上只是伪装的表格,并且我已经弄清楚如何通过更改记录来打开公制标尺(而不是英制标尺),并且这正在按预期工作。然而,对齐网格功能似乎想要对齐 48 个单位为一英寸,而不是公制。因此,使用鼠标移动方框会导致该方框(再次)以英制测量值偏移。

为了解决这个问题,我开始以表格形式打开报告,并使用电子表格手动转换所有公制单位,并手动输入偏移量和尺寸。虽然这种方法运行良好并且看起来非常准确,但它仍然容易出错。

所以问题是,如何让 FoxPro 8 在报表上以公制单位对齐网格,这样我就不必不断手动重新输入数字?很高兴让 FoxPro 以一种方式适应 Metric,我可以使用鼠标对齐报表中的对象,而不是将它们打入数字并将报表“翻转”到设计视图中进行检查。

作为参考,目前有以下翻译:

25.4 mm = 1 inch = 10,000 report units = 48 grid snap points

显然我想要更接近于此的内容:

25.4 mm = 1 inch = 10,000 report units = 25.4 grid snap points

注意:是的,我考虑过使用 FoxPro 设置虚拟机,该虚拟机使用公制安装,即为加拿大设置的 Windows XP 安装。然而,这将需要一天左右的时间才能完成安装以及开发环境的其余部分,所以我试图避免这种情况。

So I've recently had to create a report that emulates a Canadian customs form. The problem is that the report is printed on 11" x 14" paper, but uses a metric layout. As my FoxPro installation is on a machine with US-English units-of-measure, FoxPro tries to oblige by using an English ruler, and doing snap-to-grid on inch-based measurements. This creates some minor design issues obviously.

I understand that the reports are really just tables in disguise, and I have figured out how to turn on the Metric ruler (instead of the English one) by changing a record, and that is working as intended. However, the snap-to-grid functionality appears to want to snap on 48 units-to-an-inch, instead of something Metric. So moving a box around using a mouse results in the box being offset (again) in English measurements.

To get around this, I have taken to openning up the report as a table and manually converted all Metric units with a spreadsheet, and entered the offsets and sizes by hand. While this has worked well and appears to be very accurate, it's still error-prone.

So the question is, how do I get FoxPro 8 to snap-to-grid in Metric units on the report, so that I don't have to keep re-entering numbers by hand? It would be nice to get FoxPro to accomodate Metric in a fashion where I can align objects in the report using a mouse, rather than punching them in as numbers and "flipping" the report into design view to check it.

For reference, currently there are the following translations:

25.4 mm = 1 inch = 10,000 report units = 48 grid snap points

Obviously I'd like something closer to this:

25.4 mm = 1 inch = 10,000 report units = 25.4 grid snap points

Note: Yes, I have considered setting up a Virutal Machine with FoxPro that uses a Metric install, i.e. a Windows XP install set up for Canada. However, that will take another day or so to get the installation done, along with the rest of the development environment, so I'm trying to avoid that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

¢蛋碎的人ぎ生 2024-08-24 16:17:27

除非您接触过更多内容,否则将被隐藏...

修改您的报告。
右键单击,进入报表属性。
在标尺/网格选项卡上,有一个组合框,默认为“英寸”标尺,但您可以将其更改为公制/厘米或像素。下面是网格捕捉,您可以更改捕捉到的像素数的默认值。

此外,如果您使用光标键,则可以一次移动一个像素,以便根据需要进行更精确的对齐。如果您需要调整控件的宽度,如果您按住 Ctrl 键并使用左/右箭头键,将一次缩小/拉伸一个像素,而不是移动控件。同样,对于移动和大小调整,如果您选择多个控件,它们将分别移动或调整大小。

华泰

Hidden unless you've been exposed to more of it...

Modify your report.
Right-click, get to properties of the report.
On the tab for Ruler / Grid, there is a combobox which is defaulted to ruler of "inches", but you can change it to Metric/cm or Pixels. Below that is your grid snap and you can change the default of how many pixels to snap to.

Additionally, if you use your cursor keys, you can move the controls one pixel at a time for more precise alignments as needed. And if you need to resize a control's width, if you hold the Ctrl key down and use the arrow keys left/right, will shrink / strecth one pixel at a time instead of moving the control. Likewise for the moving and sizing if you pick multiple controls, they will ALL move or resize respectively.

HTH

陌路黄昏 2024-08-24 16:17:27

昨晚刚刚和一个安装了 VFP8 的朋友交谈。根据该版本,可能有一种方法可以获取报告的指标。报告上有一个基于像素或系统指标显示的设置。如果您的系统配置是基于英寸的,那么报告也是如此。如果您将系统度量更改为厘米(或任何等效的单位),那么报告在设计时也应该遵守。

华泰

Just spoke with a freind lastnight who has VFP8 installed. Based on that version, there MIGHT be a way to get metric for your reports. There is a setting on the reports from showing based on PIXELS, or SYSTEM METRIC. If you system configuration is based on inches, so too is the report. If you change your system metric to that of centimeters (or whatever equivalent it would be), so too should the report respect in design time.

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文