Is Visual Basic Scripting in NiceForm full VBA/VSTA?

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
robdavis
Enthusiast
Posts: 16
Joined: Fri Jun 11, 2010 2:54 pm

Is Visual Basic Scripting in NiceForm full VBA/VSTA?

Post by robdavis » Fri Jun 11, 2010 3:03 pm

Is the Visual Basic scripting in NiceForm full Visual Basic for Applications?

The reason I ask is because I want to make use of VB components to be able to call a HTTP GET URL direct from a NiceForm script.

For example, I'd like to be able to use the following in a Visual Basic script in NiceForm:

Code: Select all

Dim res As String
Dim doc1 As HTMLDocument
Dim doc2 As HTMLDocument
Set doc1 = New HTMLDocument
Set doc2 = doc1.createDocumentFromUrl("http://server_address.com/script.cgi?param1=a&param2=b","")

Do Until doc2.readyState = "complete"
DoEvents
Loop

res = doc2.documentElement.outerHTML

I also want to be able to process the returned data from the URL call (i.e. as in variable 'res' above)

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 691
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: Is Visual Basic Scripting in NiceForm full VBA/VSTA?

Post by dado » Sat Jun 12, 2010 1:10 pm

I've already attached a sample code how to get some data from the web site to your VBA script on this
page.

Unfortunately you cannot use the Visual Basic language that Visual Studio uses. Visual Basic scripting (that Nice application use) is a much lighter edition of VB which supports a lot less functionality.

Regards

Damjan

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2970
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Re: Is Visual Basic Scripting in NiceForm full VBA/VSTA?

Post by Saso » Sun Jun 13, 2010 3:36 pm

Rob,

For details about what you can do inside VB Script see the help file included with NiceLabel software.
c:\Program Files (x86)\EuroPlus\NiceLabel 5\bin\script56.chm

See also:
Saso Fleiser
Senior Technical Product Specialist

robdavis
Enthusiast
Posts: 16
Joined: Fri Jun 11, 2010 2:54 pm

Re: Is Visual Basic Scripting in NiceForm full VBA/VSTA?

Post by robdavis » Mon Jun 14, 2010 11:06 am

Thanks Damjam, the solution at: http://forums.nicelabel.com/viewtopic.php?f=10&t=1576 should work for me. Saso: thanks for the links to VBScript references.

Post Reply