It’s not possible to print directly in JavaScript without the print dialog with any browser.
Hi Alexander,
Try the attached sample. It shows how to dynamically create a cell editor and how to store the custom value in the cell. It displays 10 columns and 1000 rows and creates 5 different cell editors on different rows: DateTimePicker, ComboBox, NumericUpDown, TrackBar and TextBox with auto suggest list.
The sample is somewhat rudimentary since it creates a new editor each time edit mode is started. You can cache editors or create new ones according to your requirements.
You can also assign the Column.Editor property only once instead of recreating the editor each time.
Additionally, if your editor implements the IDataGridViewEditingControl interface you don’t have to store the custom value in EndEdit.
HTH
Best,
Luca
Hi Adil,
Looks like an error being returned by a proxy on your network. You need to login and allow your machine to reach the internet.
Best,
Luca
Hi Chris,
thanks, we already noticed this problem and fixed it in our build but it is not yet released.
We´ll keep you updated.
Best regards
Frank
Hey Luca,
Just updated to the latest build and it seems to have broken the alignment part of this. It’s fine when it loads, but messages added afterwards end up outside the bounds of the control. It will fix the alignment if I resize the panel, but then will resume adding messages down beyond the control bottom.
Any ideas on how to fix that?
Thanks,
Chris
In addition to Tiago’s answer, Visio should be able to save to SVG or HTML. If you save to SVG you can assign the SVG file to a Wisej.Web.PictureBox controls.
If you still want to use the ActiveX viewer (IE only), add this to Web.config:
<system.webServer> ... <staticContent> <mimeMap fileExtension=".vsdx" mimeType="application/vnd.visio" /> </staticContent> </system.webServer>
Needed to serve vsdx files.
Then in a Wisej.Web.HtmlPanel add this HTML:
<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857" width="500px" height="500px">
<param name="BackColor" value="FFFFFFFF">
<param name="AlertsEnabled" value="0">
<param name="ContextMenuEnabled" value="1">
<param name="GridVisible" value="1">
<param name="HighQualityRender" value="1">
<param name="PageColor" value="16777215">
<param name="PageVisible" value="1">
<param name="PropertyDialogEnabled" value="1">
<param name="ScrollbarsVisible" value="0">
<param name="ToolbarVisible" value="1">
<param name="SRC" value="[Name of the vsdx file]">
<param name="CurrentPageIndex" value="1">
<param name="Zoom" value="-1">
</object>
The options are probably documented somewhere on MSDN. This is what I get in a Wisej sample app:

ActiveX is supported only by Internet Explorer (IE supports about all legacy stuff). I guess ActiveX isn’t a good choice.
There are free plugins/addins for Chrome and Firefx by https://www.lucidchart.com/ They also have free online Visio Viewer solutions. I don’t know how free they are but I guess that’s the best bet.
Hi Luca
and thanks again for the answer. This really helped a lot.
Best,
Marcel
You can handle the session timeout by handling:
Application.SessionTimeout += (s, e) => {
e.Handled = true;
// Show your message (not modal).
};
When the session timeout event is fired, the session is already timeout out. You still have the “session timeout” period until it is disposed and everything is lost. You can also force a session to terminate by calling Application.Exit().
You can handle any exception fired on the server side before it is sent back to the client:
Application.ThreadException += (s, e) => {
// Display the error, or do anything you need to do.
// Once the event is handled (attached), the system will not
// send the exception back to the client.
};
Thanks it worked!
But how about other forms like
–Session timeout form– “Your session has expired” “Please close the browser”
–Invalid session form
Although this might look like an innocuous change, I’m not sure that changing the Windows Forms behaviour is a good idea.
I think the principle should be: keep Windows Forms behaviour unless there is a very good reason to change.
Examples of very good reasons:
It’s a theme property. I can send you a mixin.theme definition. Vertical, horizontal or both?
Hi Ser,
You can localize and you may also change the behavior.
See:
https://wisej.com/support/question/network-errors-dialogs
https://wisej.com/support/question/how-can-i-change-the-language-or-text-of-network-errors
Best,
Luca
Nope, need to correct myself. It’s not a bug, it’s the correct behavior – can see the same in WinForms. The (Name) property in the designer is the name of the object, not the name stored with the MenuItem instance.
I can log an enhancement to see if changing this creates problems.
Best,
Luca
Looks like a new (old) bug. The Name is not serialized in Designer.cs. It may be related to an intermittent bug that caused the loss of child menu item relationship when using the designer. This could be the reason – and we had not noticed this before.
Thank you!
Luca
Hi Marcel,
I have attached your sample app modified to use infinite scrolling. You can also easily change it back to use a button at the end of the scrolling. Notice that instead of disposing and recreating the button (now a label) I have simply re-added it to the Controls collection after adding the additional child panels – it will go to the bottom automatically.
HTH
Best,
Luca
Hi Franck & Luca,
thank’s a lot! It’s perfect with the new version.
It’s nice to see how fast you improve your solution.
Best regards,
Henry
Hi Stéphane,
can you please retry with the latest build (1.3.18)
Best regards
Frank
Hi Alex,
fix for WJ-7894 is included in the latest build (1.3.18).
Best regards
Frank
Hi Alex,
WJ-7891 fix is included in the latest build (1.3.18).
Best regards
Frank
