Page 1 of 1

WSYIWYG True/False not impact on layout

Posted: Mon Oct 31, 2011 8:57 pm
by chew3365
Hi...

Big trouble here..
During preview layout, i found that there is not impact/ difference when you set WYSIWYG to True/False.
Even i reinstall again, the result still same.

Am i missing some setting?

WSYIWYG True/False not impact on layout

Posted: Tue Nov 01, 2011 12:55 am
by Andrew
Hello,

Which viewer are you using?
Where do you set the WYSIWYG?

Thank you.

WSYIWYG True/False not impact on layout

Posted: Tue Nov 01, 2011 8:56 pm
by chew3365
Hi...

Normally we using Preview and Report viewer for preview.
When we print out direct from preview/report viewer, we can't see the difference between Wysiwyg True/False.

We set the WYSIWYG by using rich text component's properties.

I had screen shots the sample, you can refer the link as below:
http://www.filesonic.com/file/2864449305


WSYIWYG True/False not impact on layout

Posted: Wed Nov 02, 2011 5:59 am
by HighAley
Hello.
chew3365 wrote:Normally we using Preview and Report viewer for preview.
When we print out direct from preview/report viewer, we can't see the difference between Wysiwyg True/False.

We set the WYSIWYG by using rich text component's properties.
When you set WYSIWYG property to True, then rendering does with the same riched20.dll assembly, but more detailed.
Rendering does with graphics printer, therefore you need to any printer be intalled on your system. If you have higher DPI in your printer settings then you get more accurate text.
If you haven't any installed printer, then text is rendered with standard methods.

So If you have no difference, then either you have right text or don't have installed printer.

Thank you.

WSYIWYG True/False not impact on layout

Posted: Thu Nov 03, 2011 4:06 am
by chew3365
Thanks for your reply! Andreyanov

We had installed printer before install stimulsoft.
For the DPI, we can't confirm whether is higher DPI or not.
P/s: We are still using same printer and it's default printer as well

Our situation here:
When first time install stimulsoft, we can see the difference on WYSIWYG True/False directly from Preview & Report viewer
Unfortunately, now we can't see the difference between WYSIWYG True/False after reinstall stimulsoft.
We can't difference because it's seem like All WYSIWYG Default to True. Even we changed it WYSIWYG to False, but the view result still seem like WYSIWYG True.

From your reply, you said it's because of Rendering does with graphics printer, but we didn't add any new printer & driver. We just uninstall and install back after few weeks ago.

Any way to solve this issue? Thanks in advance

WSYIWYG True/False not impact on layout

Posted: Fri Nov 04, 2011 3:10 am
by Andrew
Hello,

Ok! Your question is clear but the problem is not. The WYSIWYG mode is used to show the report more accurate.

Could you, please explain why do you need to see the difference in modes?

Thank you.

WSYIWYG True/False not impact on layout

Posted: Tue Nov 08, 2011 9:47 pm
by chew3365
Hi Andrew..
Correct. WSYIWYG True will make the wordings more accurate.

Why we need to the difference in modes?

1. Because now the problem we facing, we did not know whether its set to WSYIWYG True or not from preview.
2. Due to a lot components we used, we need to use this preview to check on each components.
If we can't difference it from preview, then how we gonna to check it?
Note: First, Templates build with WSYIWYG False when starting. Since the WSYIWYG True come with more accurate result, now we need to set both of it to be TRUE.

Refer the previous replied regarding the preview seems like always WSYIWYG True even WSYIWYG is false.


WSYIWYG True/False not impact on layout

Posted: Wed Nov 09, 2011 1:52 am
by Ivan
Hello,
Note: First, Templates build with WSYIWYG False when starting. Since the WSYIWYG True come with more accurate result, now we need to set both of it to be TRUE.
You can use the following script in the BeginRender event of the report, for example:

Code: Select all

foreach (StiComponent comp in this.GetComponents())
{
	if (comp is StiRichText) (comp as StiRichText).Wysiwyg = true;
}
Or you can use the following code in your application:

Code: Select all

            StiReport rep = new StiReport();
            rep.Load(@"d:\test.mrt");
            foreach (StiComponent comp in rep.GetComponents())
            {
                if (comp is StiRichText) (comp as StiRichText).Wysiwyg = true;
            }
            rep.Compile();
            rep.Show();
Thank you.