All Answers

0 votes

It’s difficult because you have to sync column resizing, column movements, appearance/disappearance of scrollbars, the horizontal scrollbar controls both grid, etc. We have an undocumented and unsupported internal js method called “bindToGrid”. See attached.

0 votes

Thanks for bringing this to our attention. We are currently investigating this issue.

0 votes
In reply to: Canvas save to bmp

There is no screenshot happening on IIS.  The Html2Canvas extension uses an open source component (Html2Canvas) that redraws an HTML page into a canvas and returns the base64 content to the server which is then converted to an image. There are no security concerns involved.

To convert a canvas to a base64 image you have to use the canvas api. You can find here https://html2canvas.hertzen.com/ or you can see the source code we provide with the Html2Canvas extension that Julie mentioned. https://github.com/iceteagroup/wisej-extensions.

  • Luca answered May 1, 2023 - 4:16 pm
  • last active May 1, 2023 - 4:18 pm
0 votes
In reply to: Canvas save to bmp

Hi Julie, sorry I’ve spend days now in trying to get my Canvas image saved. Without any result. Screenshot method doesn’t work on an IIS server for the obvious reason, it would be a huge risk creating screenshots on the server. Another possibility, which doesn’t work, is the “Canvas.ToDataUrl”….. Make a drawing on the canvas (also on touchscreens) works fine but makes no sense if we can’t store the result….

Regards,

Wim

 

0 votes

PictureBox binding is the same as any other control. Bind “Image” (for binaries: png or jpg from a byte[] – it’s all in the standard ImageConverter that you can also override) or “ImageSource” (for URL’s or theme images). You can also use an  image column or put an image on any cell using Style.BackgroundImage or BackgroundImageSource. The image can be stored in the style or you can assign it only when rendering the cell for the browser in CellFormatting.

  • Luca answered Apr 28, 2023 - 4:01 pm
0 votes

Hi Ala
I found and downloaded the wonderful DemoBrowser application.
Now I understand how the datarepeater works and my application works fine.

Thank you for your suggestion.
Angelo

0 votes

Hi Angelo,

Did you give our DemoBrowser application a try?

It contains demos of our control set and also source code examples, and the DataRepeater control demo also features binding a PictureBox.

You can access the Documentation and Source code directly from inside the application, or you can browse/clone the repository.

HTH,
Alaa

0 votes

thank you Alaa.
I think the best way to do this is to use the datarpeater.
Today I tested this control for the first time.
I followed the documentation and examples.
But I have a problem.
Below what I did.
I placed a data repeater (dtrp), label (lbl) and picturebox control (pcbleft).
I defined a class:

Private class clsdtrp
Public Property img As Image
Public Property usr As String
End Class

and finally, in a method I put the code:

Dim itmlist As New BindingList(Of clsdtrp)
For r = 0 To 10
Dim itm As New clsdtrp
itm.img = My.Resources.Leo_01_32
itm.usr = “user” + r.ToString
itmlist.Add(itm)
Next
pcbLeft.DataBindings.Add(“image”, itmlist, “img”, True)
lbl.DataBindings.Add(“Text”, itmlist, “usr”)
dtrp.DataSource = itmlist

Now my problem..
The datarepeater works fine if I just bind the label control.
When I also bind the image box, the datarepater doesn’t show any elements.

I think the problem is in the picturabox binding. I haven’t found any examples (on documentation and examples) of using picturebox el datarepeater .

Any suggestions?

 

0 votes

Hi Alaa,

it works perfecty!

Thank you and best wishes.

Antonio

0 votes

Hi Angelo,

The alignment property is for the content of the cell, not the control inside it.

Any control in a cell can be docked, so you can set its DockStyle to Fill.

In general, the best approach is to place an image in a cell by using the DataGridViewCell.Style.BackgroundImage properties.

HTH,
Alaa

0 votes

Hi Harold,

The fix for this issue is going to be released with Wisej 3.2, in the meantime, you can use the Beta.31 build to try it out!

Best,
Alaa

0 votes

Hi Antonio,

You can use our latest Beta31 release, a fix is already included in that version!

Let me know if it’s working as intended.

Best,
Alaa

0 votes

Hi Tiziano,

You have to override the ParseEditText method of the DateTimePicker and implement your own parser there.

“24”, or any 2 digit number is not a valid Date string, that’s why it fails the first time but shows the last value the second time, because even though the string was invalid, the value was correctly set so the next time you write any other invalid string, the last valid value is going to show up!

by overriding the ParseEditText method, you can control how you parse your date, and even implement your own validation rules to be used in the Validating event.

I have attached a sample for you to check out.

HTH,
Alaa

  • Alaa (ITG) answered Apr 27, 2023 - 12:25 pm
  • last active Apr 27, 2023 - 12:50 pm
0 votes

Hi Nicky,

Wisej.NET doesn’t have any digital signature features, you have to use your own provider APIs and/or libraries.

With that being said, generating these types of URLs should be handled by the API in question.

HTH,
Alaa

0 votes
In reply to: Canvas save to bmp

Hi Julie, unfortunately I need the package Html2Canvas for Framework 4.6.2

 

0 votes
In reply to: Canvas save to bmp

Install the Html2Canvas Wisej extension in your Wisej project: (Right-click on the project under Solution Explorer, choose Manage Nuget Packages, Browse, search for “wisej html2canvas”, select it and install it)
https://docs.wisej.com/extensions/extensions/html2canvas

You can then use the Html2Canvas extension to save a screenshot of the contents of the canvas control:

private void button1_Click(object sender, EventArgs e)
{
AlertBox.Show("Saved canvasimage.bmp to the current directory");
// Use Html2Canvas to save a screenshot of the canvas contents
Html2Canvas.Screenshot(this.canvas1, (image) => { image.Save(@".\canvasimage.bmp"); });
}

More documentation on HTML2Canvas: https://docs.wisej.com/extensions/extensions/html2canvas/api/wisej.web.ext.html2canvas.html2canvas

  • Julie(ITG) answered Apr 26, 2023 - 4:22 pm
  • last active Apr 26, 2023 - 4:26 pm
0 votes
In reply to: Canvas save to bmp

Here is a sample:

1 vote
In reply to: Button Hover Effect.

Hi Ruben,

Attached is a mixin file that enables the hovering effect you need.

A theme mixin is applicable to all themes, meaning it overrides whatever default value on any theme you want.

With the Wisej.NET theming system, you can use CSS to customize your themes to include virtually anything you want!

I would suggest that you take a look at our Theme Builder documentation for more info!

All you have to do now, is to download the mixin file from here, and then copy/paste it into your application’s Themes folder and you’re all good to go!

HTH,
Alaa

0 votes

We were able to reproduce the issue and are investigating it further.
-Julie

0 votes

Gracias, ?

Showing 1301 - 1320 of 11k results