All Answers

0 votes

Hi Tom,

Sorry for the delay.

The NOSCRIPT tag is displayed when the browser has javascript disabled.

Unfortunately, Wisej does not create any html strings. It’s all JavaScript components.

Best,
Alaa

//

0 votes

Dear Alaa

This example of mycode in asp.net.

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web
Imports System.Data
Imports System.Data.SqlClient

Public Class FrmUserPrint
Inherits System.Web.UI.Page
Public DSMaster1 As New DSMaster
Private cprt As New ReportDocument
Private scon As SqlConnection, scom As SqlCommand, strsql, strobra, strocomp, strousernm As String
Private POS1 As New Pos
Private strklik As String

Private Sub FrmUserPrint_PreInit(sender As Object, e As EventArgs) Handles Me.PreInit
strklik = Request(“klik”)
strobra = Request(“branch”)
strocomp = Request(“company”)
strousernm = Request(“username”)
If strklik = “” Then
Label1.Visible = False
DropExport.Visible = False
BtnExport.Visible = False
Return
End If
PTampil()
cprt.Load(Server.MapPath(“/rpt/Master/Rpt_Master_User.rpt”))
cprt.SetDataSource(DSMaster1.Tables(“DtMUser”))
cprt.SetParameterValue(“strprinted”, “Dicetak oleh : ” & strousernm & ” / ” & Now.ToString(“yyyy-MMM-dd HH:mm:ss”))
CRV.ReportSource = cprt
Label1.Visible = True
DropExport.Visible = True
BtnExport.Visible = True
End Sub

Private Sub BtnExport_Click(sender As Object, e As EventArgs) Handles BtnExport.Click
Try
Select Case DropExport.Text.ToLower.Trim
Case “pdf”
cprt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, “List_User”)
Case “word”
cprt.ExportToHttpResponse(ExportFormatType.WordForWindows, Response, False, “List_User”)
Case “excel”
cprt.ExportToHttpResponse(ExportFormatType.Excel, Response, False, “List_User”)
Case “excel 2007”
cprt.ExportToHttpResponse(ExportFormatType.ExcelWorkbook, Response, False, “List_User”)
Case “csv”
cprt.ExportToHttpResponse(ExportFormatType.CharacterSeparatedValues, Response, False, “List_User”)
Case “rtf”
cprt.ExportToHttpResponse(ExportFormatType.RichText, Response, False, “List_User”)
Case “rtf editable”
cprt.ExportToHttpResponse(ExportFormatType.EditableRTF, Response, False, “List_User”)
Case “text”
cprt.ExportToHttpResponse(ExportFormatType.Text, Response, False, “List_User”)
End Select
Catch ex As Exception
cprt.Close()
cprt.Dispose()
GC.Collect()
End Try

End Sub

Sub PTampil()
Dim srdr As SqlDataReader
scon = POS1.F_con()
DSMaster1.Tables(“DtMUser”).Rows.Clear()
Try
scon.Open()
strsql = “select userid,nama,group_access,last_login,host_login,ip_login,[status] from m_user order by [status],nama”
scom = New SqlCommand(strsql, scon)
srdr = scom.ExecuteReader()
While srdr.Read()
Dim arw As DataRow
arw = DSMaster1.Tables(“DtMUser”).NewRow
arw(0) = IIf(IsDBNull(srdr.Item(“userid”)) = True, “”, srdr.Item(“userid”))
arw(1) = IIf(IsDBNull(srdr.Item(“nama”)) = True, “”, srdr.Item(“nama”))
arw(2) = IIf(IsDBNull(srdr.Item(“group_access”)) = True, “”, srdr.Item(“group_access”))
arw(3) = IIf(IsDBNull(srdr.Item(“status”)) = True, 0, srdr.Item(“status”))
arw(4) = srdr.Item(“last_login”)
arw(5) = IIf(IsDBNull(srdr.Item(“host_login”)) = True, “”, srdr.Item(“host_login”))
arw(6) = IIf(IsDBNull(srdr.Item(“ip_login”)) = True, “”, srdr.Item(“ip_login”))
DSMaster1.Tables(“DtMUser”).Rows.Add(arw)
End While
srdr.Close()
srdr.Dispose()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
scon.Close()
scon.Dispose()
End Sub

Private Sub FrmUserPrint_Unload(sender As Object, e As EventArgs) Handles Me.Unload
If cprt IsNot Nothing Then
cprt.Close()
cprt.Dispose()
GC.Collect()
End If
End Sub

Private Sub BtnExport_Unload(sender As Object, e As EventArgs) Handles BtnExport.Unload
If cprt IsNot Nothing Then
cprt.Close()
cprt.Dispose()
GC.Collect()
End If
End Sub
End Class

 

 

0 votes

Hi Nicky,

We use Crystal Reports and have had tons of problems. We are in a transition to Stimulsoft Reports but have to support Crystal for some time. We built a library to take the report parameters and convert it to a PDF, we then deliver that PDF to the front end. If this would work for you I’m happy to share the source code for that library with you (it takes a database connection string, the report filename, the PDF filename etc.).

There’s also a limit of how many reports you can see in one session – I think the default is 20, then you get all sorts of issues. There are registry keys to get round this, but you’ll see memory leaks etc. from Crystal. It hasn’t progressed at all since SAP bought it.

Regards,

Neil.

0 votes

Tanks!

0 votes

Hi Nicky,

Would you be able to wrap-up a small reproducible test case for us to check the issue?

Best,
Alaa

0 votes

Hi Mario,

You can find the GitHub source code for the DemoBrowser over at: https://github.com/iceteagroup/wisej-demobrowser

HTH,
Alaa

0 votes
In reply to: Wrong Product Name

Thanks Alaa to reach me

but the problem still remains though I switched to the English language.

 

0 votes

Hi Tiziano,

Session lifetime doesn’t work with ASPNet Core Services becauseASPNet Core doesn’t support it; It’s either a singleton or a new instance each tine the service is requested or a new instance each time the service is requested per thread.

Unfortunately, we cannot change the way it works.

However, Wisej.NET Service Manager instead can register services per session. Any service; Just use AddService() passing the service type.

You can also register a service using a factory callback and create the service instance in code however it needs to be created.

As for Dependency Injection, for Wisej.NET containers it’s automatic when you use [Inject].

For services created by ASPNet it cannot work but if you use a factory callback that you can use apnet service container to create a service instance using theirDependency Injection.

HTH,
Alaa

0 votes
In reply to: Wrong Product Name

Hi Soran,

Looks like you have to use an english browser to copy/paste your license key.

The issue is, from what I can see from your screenshot, is the Indo-Arabic numerals that were replaced due to the browsers culture.

HTH,
Alaa

0 votes

I’ve named the file Platform.Wisej.Web.ext.ImageUpload but doesn’t work yet.

In the js file, when I define the class:

qx.Class.define(“wisej.web.ext.ImageUpload”, {

extend: wisej.web.Upload,

properties: {

I have to define the name “wisej.web.ext.ImageUpload” or I have to set the name with also Platform at the start?

Thank you

 

Giorgia

0 votes

The screenshots show the wrong docking. Just dock to top and dock to fill. There is nothing to fix. The order of the controls defines whether the fill uses the entirely available area or the area remaining after the other docked panels. Nothing gets resized by clicking unless  it’s done in your code. You may be seeing the browser scrolling an element into view, which is normal browser behavior.

  • Luca answered Jan 27, 2023 - 2:56 pm
0 votes

You are already controlling it in the sample (the wrong way):

  1. in f2_sizeChanged you set the height of the parent to the size of the child being resized. The child f2 is set both to fill and to autosize. It cannot autosize on the content and fill to the parent at the same time. And the size loop makes a mess.
  2. Other panels are also set to both autosize and fill at the same time.
  3. No need to call Update or Invalidate anywhere.

It’s unclear what you are trying to achieve. If you describe what kind of layout you are trying to build we may be able to help.

  • Luca answered Jan 27, 2023 - 2:53 pm
0 votes

Hi,

I have attached a sample that should work now.

We identified an issue with the Button not starting Drag & Drop because the pointer is captured for the down/up movement.

This issue will be fixed in the next build (3.1.8).

HTH,
Alaa

//

0 votes

Good morning Luca,

your patience is greatly appreciated thank you again.
from the referenced WiseJ document “Drag & Drop” [ docs.wisej.com/docs/controls/general/drag-and-drop-1 ]
The first paragraph instructs:

set AllowDrag on my dynamically generated buttons that sit in my
SOURCE FlowLayoutPanel, as these buttons should initiate the drag operation.

I made sure my DESTINATION FlowLayoutPanel that is recieving the dragged buttons
to AllowDrop true, such that it CAN receive the dropped data/Buttons.
When the user starts dragging, the control will fire the DragStart event.

There is no DragStart event associated with this new programmatically created control.
– THAT I AM AWARE OF –
You must handle this event and call the DoDragDrop() method, otherwise the drag operation doesn’t start.
So one must apparently manually associate a DragStart event to these newly created buttons.
I have a method available for that but associating it correctly is not working for me as Shown in the image attached.

Thus far, my tests are allowing me to create / assign a method to the programmatically created control,
(but it doesn’t hit the method)

My method is not invoked on attempt to “DragStart”  at runtime this new programmatically created button.

btnDynamic.DragStart += btnDynamic_DraggingButton;

0 votes

Hi Nicholas,

I apologize for the delayed answer to this question.

You can control the space between tokens on a Theme level by changing the “spaceingX” property of the “Container” of the TagTextBox.

You’ll have to use the theme builder for that!

HTH,
Alaa

//

0 votes

Hello,

Looks like the VB.NET compiler doesn’t use the folder names to build the embedded resource name. It only uses the default namespace of the project + the file name.

You can still place your embedded resources in \Resources or \Platform in VB.NET, but you also have to rename the file like this:

  • \Resources\my-code-to-bundle.js -> \Resources\Resources.my-code-to-bundle.js
  • \Platform\my-code-to-bundle.js -> \Platform\Platform.my-code-to-bundle.js

For more info, please check out the relevant documentation about Embedded Resources (Look a the VB.NET alert).

HTH,
Alaa

0 votes

Yes. If by dynamically created controls you mean controls created by code, all controls are always created by code. There is nothing different and no other way to created any instance of any class in .NET.

The error you see is CS0176 and it’s also described in the error log. It’s telling you to use a class name instead of “this”. Simply because you declared the method as static. It’s completely unrelated to events.

https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0176

 

  • Luca answered Jan 25, 2023 - 11:07 pm
  • last active Jan 25, 2023 - 11:08 pm
0 votes

I am attempting to manually add the event handler to my dynamic buttons and now this

[ https://stackoverflow.com/questions/45194678/how-can-i-manually-build-one-valid-drageventargs-object-in-order-to-call-the-win ]

0 votes

Please attach a WinForms project that works the way you want it to work.

Best,  Alaa   

Humbly I have attached s sample solution.      Hypothesis was Drag Drop on FormLayoutPanel

I am questioning the feasibility of creating appropriate event(s) for the  dynamically created buttons

that are added to FormLayoutPanel   as THEY ,  are the controls being drug to another FormLayoutPanel.

It seemed like a pretty straightforward question to me … but   here is the test project anyway if that helps.

AGAIN for clarity per the document referenced above. which appears to operate on a row of a DataGridView.

It “SEEMS” like I will need to manually add — during the dynamic creation of my buttons their events for Drag Drop  ?

I’d like to confirm the minimum required (drag drop related ) events that I need to slap onto these dynamic buttons in my FlowLayoutPanel as

well to Drag the dynamic buttons from      FormLayoutPanel#1      to FormLayoutPanel#2

please  &   thank you

1 vote

Hi,

Please attach a WinForms project that works the way you want it to work.

Best,
Alaa

//

Showing 1901 - 1920 of 11k results