WSYIWYG True/False not impact on layout

Stimulsoft Ultimate discussion
Post Reply
chew3365
Posts: 5
Joined: Sun Oct 23, 2011 9:00 pm
Location: malaysia

WSYIWYG True/False not impact on layout

Post 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?
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

WSYIWYG True/False not impact on layout

Post by Andrew »

Hello,

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

Thank you.
chew3365
Posts: 5
Joined: Sun Oct 23, 2011 9:00 pm
Location: malaysia

WSYIWYG True/False not impact on layout

Post 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

HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

WSYIWYG True/False not impact on layout

Post 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.
chew3365
Posts: 5
Joined: Sun Oct 23, 2011 9:00 pm
Location: malaysia

WSYIWYG True/False not impact on layout

Post 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
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

WSYIWYG True/False not impact on layout

Post 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.
chew3365
Posts: 5
Joined: Sun Oct 23, 2011 9:00 pm
Location: malaysia

WSYIWYG True/False not impact on layout

Post 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.

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

WSYIWYG True/False not impact on layout

Post 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.
Post Reply