vb.net

crystal reports asp.net do i have to use setdatabaselogon

☆樱花仙子☆ 提交于 2021-02-11 13:56:05
问题 I have a crystal report designed using xsd file (dataset with ado.net connection). Crystal version 14.2.5.2618 and using vs 2017... deployed to .net 4.7.2 framework website. I have a service (WCF) returning a dataset that is valid and filled. When I deploy the report to the web server the report prompts for a database login even though it is fine in development. Here is the code with names changed to protect the innocent. m_myRPT.Load(Server.MapPath("~/Reports/my.rpt")) m_myRPT.PrintOptions

DocuSign JWT Access Token Request

半世苍凉 提交于 2021-02-11 13:50:54
问题 I'm trying to get access token within sandbox environment. I've a VB.NET application and referenced DocuSign.eSign.dll I examined docusign C# code examples and could not get them run in vb.net This is the first approach I tried: Dim ac As ApiClient = New ApiClient() Dim privateKeyStream() As Byte = Convert.FromBase64String(PrivateKey) Dim tokenInfo As OAuth.OAuthToken = ac.RequestJWTUserToken("INTEGRATION_ID", "ACCOUNT_ID", "https://account-d.docusign.com/oauth/token", privateKeyStream, 1)

Setting default property fails because it is read only?

 ̄綄美尐妖づ 提交于 2021-02-11 13:49:24
问题 This code was converted from VB6 to VB.Net: Public prvMainForm = VB6Form If prvMainForm IsNot Nothing Then CObj(prvMainForm).StatusBar.Panels(1) = "Initializing Folders..." End If (My code is quite long so I've just added this if block which is where the actual error occurs.) The error is seen on the single line inside the If statement: Property 'Item' is 'ReadOnly' 回答1: StatusBar.Panels(1) returns a MSComctlLib.Panel . StatusBar.Panels(1) = "Initializing Folders..." is valid in VB6 because

Looping though elements in vb.net

扶醉桌前 提交于 2021-02-11 13:48:06
问题 Is there a way I can loop though multiple elements with number based names, changing their properties? Example: Here are an example set of elements on my form: Element1 Element2 Element3 Element4 Element5 This is the kind of thing i was thinking of: For i = 1 To 5 Element + i .BackColor = Color.Maroon Next This is just because I have a large number of elements, which i would like to change the properties of during the application running. Thanks for any answers. 回答1: Sure, replace Me.Controls

How to create a global event?

怎甘沉沦 提交于 2021-02-11 13:11:24
问题 I have a global variable g_user as string and a Label lb_welcome to show username, How can i create a global event when g_user changed then will trigger a function Private Sub Login() g_user = VerifyUser(id,password) lb_welcome.Text = $"Welcome {g_user}" End Sub I try to do something like this:- Private Sub RefreshLabel() lb_welcome.Text = $"Welcome {g_user}" End Sub Private Sub g_user_Changed(sender As Object, e As EventArgs) Handles g_user.Changed RefreshLabel() End Sub Above is just an

How to create a global event?

和自甴很熟 提交于 2021-02-11 13:03:39
问题 I have a global variable g_user as string and a Label lb_welcome to show username, How can i create a global event when g_user changed then will trigger a function Private Sub Login() g_user = VerifyUser(id,password) lb_welcome.Text = $"Welcome {g_user}" End Sub I try to do something like this:- Private Sub RefreshLabel() lb_welcome.Text = $"Welcome {g_user}" End Sub Private Sub g_user_Changed(sender As Object, e As EventArgs) Handles g_user.Changed RefreshLabel() End Sub Above is just an

Crystal Reports empty when printed during runtime(without viewer)

半世苍凉 提交于 2021-02-11 12:51:45
问题 I'm developing a small POS system using VB.Net , MS Sql and Crystal Reports. I have no trouble viewing reports using Cry Rep Viewer. But when i try to print a bill during runtime the report becomes empty. Following is the sequence i'm executing within the procedure. Generate bill no Deduct qty from stocks add the transaction from temp table to final sales table print bill delete temp table transactions clear for next transaction But my problem comes during the bill printing. Bill does not

How can I do a call back to the code behind method using javascript (properly)?

梦想的初衷 提交于 2021-02-11 12:49:01
问题 So I am trying to call back to a code behind method using Javascript and it seems like the only way to do so is using the Page.ClientScript.RegisterClientScriptBlock() Method. I don't need to return any data back to the calling javascript function. This isn't a web service, so I am not going to use a ajax call, but this seems like there would be an easier way to do this than Client Callbacks Programmatically with Page.ClientScript..... 回答1: Page.ClientScript.RegisterClientScriptBlock() is

Panel Background not refreshing during scrolling (C#/VB.net)

自闭症网瘾萝莉.ら 提交于 2021-02-11 12:41:51
问题 I have this weird scrolling/background bug in C# and VB.net. When I create a panel and I use Autoscroll the background isnt updating during scrolling. In the end it looks really weird (video: https://youtu.be/0vaO-zmWFmk) I tried the same with a TabControl and the background scrolled like it should. I tried external scrollbars and the same happened. And I tried VB.net too. I think this is a bug from Visual Studios and I would appreciate if someone could help me Thanks, LG! 回答1: If you want

Panel Background not refreshing during scrolling (C#/VB.net)

蹲街弑〆低调 提交于 2021-02-11 12:41:25
问题 I have this weird scrolling/background bug in C# and VB.net. When I create a panel and I use Autoscroll the background isnt updating during scrolling. In the end it looks really weird (video: https://youtu.be/0vaO-zmWFmk) I tried the same with a TabControl and the background scrolled like it should. I tried external scrollbars and the same happened. And I tried VB.net too. I think this is a bug from Visual Studios and I would appreciate if someone could help me Thanks, LG! 回答1: If you want