How to put Nested List in HTMLDocument in JTextPane(JEditorPane)
How to put Nested List in HTMLDocument in JTextPane(JEditorPane). I was trying to put nested Bullets and Numbering but found that not enough support is provided for it. The HTMLEditorKit behaves abnormally.
There are two ways to do that:
1) just extract the whole text by getText, but the problem is you don't have the postion where the cursor was when the event was triggered so u can't add ur text to it , even if u extracted the text at cursor there can be multiple copies, so no way...also if u change it and reinsert the whole text the atributeset for whole text is lost.
2) So the only way is work with jugglery of Elements, which is full of bugs. I find it very difficult to move backward in it and insert a tag around a tag. Such a simple thing and almost no way. If anybody has any ideas please mail me.
Thanx in Advance
Settings > Mail, Contacts, Calendars > Contacts > Sort Order/Display Order 'First, Last'
Similar Messages
-
How to put contact list in first name order
how to put contact list in first name order
Settings > Mail, Contacts, Calendars > Contacts > Sort Order/Display Order 'First, Last'
-
How to put dropdown list for a field in MIGO
Hi all,
I added a new tab in MIGO by using the BADI MB_MIGO_BADI
in that tab for one of the field i have to put dropdown list (some static values)
i tried VRM_SET_VALUES , but how to pass the static values to the screen field as dropdown list.
please help on this issue.
Thanks,
SatishHi,
The logic u told is right it should work.
PROCESS ON HELP-REQUEST.
FIELD MSEG-VENDTYPE MODULE HELP.
PROCESS ON VALUE-REQUEST.
FIELD MSEG-VENDTYPE MODULE HELP_VENDOR.
MODULE HELP_VENDOR INPUT.
*break-point.
wa_values-key = 'M'.
wa_values-text = 'Manufacturer'.
append wa_values to values.
clear wa_values.
wa_values-key = 'FD'.
wa_values-text = 'First Stage Dealer'.
append wa_values to values.
clear wa_values.
wa_values-key = 'I'.
wa_values-text = 'Importer'.
append wa_values to values.
clear wa_values.
wa_values-key = 'DI'.
wa_values-text = 'First stage or Second stage dealer of Imported Goods'.
append wa_values to values.
clear wa_values.
wa_values-key = 'MD'.
wa_values-text = 'Manufacturers Depot or Consignment Agent'.
append wa_values to values.
clear wa_values.
wa_values-key = 'SD'.
wa_values-text = 'Second stage dealer of Indeginious Ecisable Goods'.
append wa_values to values.
clear wa_values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = '01'
VALUES = VALUES
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " HELP_VENDOR INPUT
*& Module HELP INPUT
text
MODULE HELP INPUT.
if sy-uname = 'ABAPUSER'.
break-point.
endif.
ENDMODULE. " HELP INPUT
Process on help req is triggering on pressing the F1 help but process on value req is not triggering on pressing F4 it is triggering before the screen display i.e in PBO can u tell wat might be the problem.
Thank u very much. -
How can I put a list in alphabetic order?
How can I put a list in alphabetic order?
If you don't mind putting the list in a Table, you can use the table tools to sort the rows into alphabetic order. If you don't like the idea of a table in your document and you don't want to go through converting your text to a table and back again, you can download, and install, and setup, Devon WordService, a free third party app that provides sorting and many other useful functions.
Jerry -
How to put checkboxes in a Tree list
Hi All,
I have generated a tree structure in my list from a table. The requirement is I have to put checkboxes for the leaves(bottom most level) of the tree. Now the user will be selecting required leaves and thus my logic will continue.
Can anyone tell me how can i put checkboxes for all the leaves?
Also, The number of leaves is in thousands. To keep that many check boxes, I have to create that many number of variables, which can be done dynamically.
So, how to put check boxes and how to create those variables dynamically? How can i meet my requirement?
Plz guide me in this issue.Take a look SAPCOLUMN_TREE_CONTROL_DEMO program screen 100 in SE80 transaction
ibrahim -
I've downloaded the free pixel bender plugin for my mac (it says toolkit) for cs5 but I don't know how to put it in my filter list, can someone walk me thru it please?
Copy it in the respective plug-in folder.
Mylenium -
How to declare a list of dates
Hi,
I have an item which type is "Display as text based on LOV". I put in the source section under the type "Pl/SQL function body" the following pl/sql function :
DECLARE
X VARCHAR2 (4000);
Y DATE ;
BEGIN
X := 'SELECT distinct(TO_CHAR(DATE1, ''YYYY'')) d, (TO_CHAR(DATE1, ''YYYY'')) r FROM SIVOA.EVV_'|| :p4_site ||' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SIVOA.SITE_DEBIT_RIVIERE WHERE SITE ='''|| :p4_site ||''')
order by d';
EXECUTE IMMEDIATE X INTO Y;
RETURN Y ;
END;The problem is that I get an ORA error.
ORA-00932: types de données incohérents ; attendu : - ; obtenu : -
I know that I have declared Y as a date and that what is returned by my function is a list of dates. I don't know how to declare a list of dates or whatever to be returned as a lis of values. Hope I am clear, sorry for my english.
Thank you for your kind help.
ChristianHi Tony
You hare very patient with me thank you !!!
Let me clarify well.
I am trying to create a list of values based on dates contained in a table. This list of values should contains the "years". If the table contains data for the years 2005, 2006, 2007, then the list of value should return :
2006
2007
2008
As I want a list of value I need to have a display and a return value. The name of the table is 'dynamic' It is the item P4_SITE that contains a part of the name of the table. This is why I am usins PL/SQL, because I don't know the name of the table in advance.
I have not seen any way to put a pl/sql statement in the List of values definition of the item. Thi s is why I try to make a LOV with the SOURCE of the item.
Hope I am clear. -
How to get a list of every application on my computer?
I'm trying to figure out how to get a list of every application on my computer using applescript. I know it is possible for the system to do this, as evidenced by the dialog you get when you use the "choose application" function. Other examples are doing a spotlight search for "kind:app" or programs like Namely or QuickSilver.
Is there a way to do this in applescript? The only solution I've come up with so far is to use the command:
<pre>set everyapplicationaliases to choose application as alias with multiple selections allowed</pre>
and manually select all on the resulting dialog. I can then take the results and go from there, however there are a few significant problems with this approach.
1. It requires user interaction. (I have an idea for some future applications that could use this functionality if it can be done without user input.)
2. It's horribly slow. As a test run I choose all the applications from the dialog, extracted some basic info and put the result on the clipboard. It took a couple of minutes to complete this relatively basic task. In comparison, running the aforementioned spotlight search took maybe ten seconds.
Thanks in advance!
best,
peterFor these specific queries my results are...
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'application'c) || (kMDItemKind = 'widget'c)\"")
3082
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'Application'c) || (kMDItemKind = 'Widget'c) ||
((kMDItemContentTypeTree = 'com.apple.application') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard))\"")
3115
I think I finally found some numbers that make sense!
When I search for Kind:Application by the Command+F method in the Finder, I get a total of 2521 items, of which 2477 are "Applications" and 44 are "Other".
(Just by eyeballing it, "Other" seems to include some Classic Apps and some .bundle files.)
The total # found by this method (2521) plus the number of Widgets found using mdfind (318) equals the number of total number of items found by spotlight (2839).
I also noticed that these numbers almost equal the spotlight number:
mdfind results for kMDItemKind:
Widgets: 318
Applications: 1684
Classic*: 795
and
Command+F "Other" items: 44
3181684+79544 = 2841
It may be a fluke that this is so close to the 2839 spotlight gives, or maybe there's an overlap somewhere...
Tying this back into my initial question, it seems like the original mdfind command for Applications is probably the best answer for what I was looking for,
since I wasn't really thinking about Classic apps and Widgets anyway. -
First off, I'm a Newbie to Dreamweaver. So. I'm in a real
learning phase.
I can't figure out how to "Put" my development file to my web
Server. I have an ftp connection. At least I think I do since I
have file list that seems to be pointing to the files I have on
webserver. I manually copied my files from my development folder to
my web server. Now I want to use Dreamweaver to put my files and
then I want to have Dreamweaver manage my file so that next time I
one have to upload my "Changed" files. I searched Dreamweaver Help
and didn't understand what I read. Sorry..
Appreciate any help you can give me, or point me to somewhere
on the web that my a step by step procedure.
Thanks....Please tell me this - when you look at the name of the site
in the drop-down
list of defined sites on the left top of the Files panel, do
you see a
folder icon, or a little computer icon?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bruceaj" <[email protected]> wrote in
message
news:epr3mt$4mu$[email protected]..
> First off, I'm a Newbie to Dreamweaver. So. I'm in a
real learning phase.
>
> I can't figure out how to "Put" my development file to
my web Server. I
> have
> an ftp connection. At least I think I do since I have
file list that seems
> to
> be pointing to the files I have on webserver. I manually
copied my files
> from
> my development folder to my web server. Now I want to
use Dreamweaver to
> put my
> files and then I want to have Dreamweaver manage my file
so that next
> time I
> one have to upload my "Changed" files. I searched
Dreamweaver Help and
> didn't
> understand what I read. Sorry..
>
> Appreciate any help you can give me, or point me to
somewhere on the web
> that
> my a step by step procedure.
>
> Thanks....
> -
How to put Video/DVD/games/eBook to Nokia
Nokia phone still the NO.1 of all the phones, As a fan to Nokia phone, I want to share with you some tips to play Nokia. Only some experience of play Nokia phone, just enjoy it.
This guide will show you how to put videos to Nokia, DVD to Nokia, games to Nokia and eBook to Nokia.
1 How to convert DVD/Video to Nokia
2 How to free download games to Nokia
3 How to put eBook to Nokia
1 How to convert Video/DVD to Nokia
After you download [url=http://www.daniusoft.com/dvd-to-nokia-suite.html]Daniusoft DVD to Nokia Suite[/url], you may find there are two options for you to choose for DVD to Nokia or Video to Nokia.
1 Run “DVD to Nokia Converter” to load Daniusoft DVD to Nokia Converter.
Insert your DVD disc into your DVD-Rom. Click “Load DVD” button to add the DVD file. You can also click “Load File” to add DVD/IFO from your hard disk.
[img]http://www.daniusoft.com/article-image/nokia/dvd-nokia.jpg[/img]
A regular DVD movie has several titles, by default, this software will merge all the DVD chapters into one video clips, you can check the click box before the title list to select any DVD clips you want to rip. Then just check the box “Merge into one file” to join file.
2 Open the drop download list to choose the Audio and Subtitle you like, you can also change the output files location.
3 Click on “Start” button to start the conversion.
Video to Nokia
Click “Video to Nokia Converter” to load the Daniusoft Video to Nokia Converter.
The convert video to Nokia is similar with the operation of convert DVD to Nokia
“Add” button to load video -> Choose output “format” -> “Start” Convert
This software supports batch conversion, so you can add several video clips at one time.
Tips:
Cut off the black edge of DVD- Click on “Effect” button. Move your mouse cursor to a box on the frame around the video to cut off black edge.
Control file size- You also click on the “Settings” button to customize the resolution, such as: video bit rate, encoder, frame rate, audio bit rate, channel, etc. This program also lets you create a profile and save it, then you can use different settings for each video clips.
With the “trim” function, you can trim any segment of videos to convert as you want:
Edit video effect – Click on “Effect” button. You can Adjust Brightness, Contract, Saturation of the video and the adjust the volume of music.
2 How to download games to Nokia (Free Nokia Java Games Installation guide)
Step 1 Download one of the Free Nokia Java Game files to your computer, and unzip the contents to a folder called 'Games' on your desktop.
Step 2. Download and install Nokia PC Suite
Step 3. Connect your Nokia to your computer with a cable or Bluetooth Dongle or infra-red cable
Step 4. Launch the Application Installer and continue. (Tutorial is based on the Nokia 7210)
Click the Install Application Icon Pictured
Here is a webpage which contains the games and themes list for Nokia, you may find many useful information here:
http://www.daniusoft.com//nokia-resource-list.html
How to transfer between Nokia and computer
Bluetooth - To send a game to your mobile via Bluetooth. You simply right click the desired theme on your desktop, select Send To/Bluetooth/Nokia 6600
A new message will arrive on your phone, open it and you will be able to install the new game. Once installed, delete the message and press the menu button and your game will have been added.
infra red connection cable - Firstly you will need an infra red connection cable. Download the SIS file to your computer. Enable infrared port in your phone. Select your sis file on PC, press right mouse button and select "Send to -> Infrared". The file will arrive as new message. Open Messaging application, then open the message. Installer will be started automatically.
[img]http://www.daniusoft.com/article-image/nokia/game-nokia.jpg[/img]
Then go to the folder where your files have been downloaded and unzipped into, and select a game folder. For this tutorial we are going to install Blackjack, because we have a gambling problem Double click the Blackjack folder.
Now you will see the all important Blackjack.jad file double click it to download it to your Nokia 7210
Wait until the installation process has finished (indicated below). Blackjack is now installed and you can gamble to your hearts content
3 How to read eBook on Nokia
1 Download and install the Ebook for Nokia to use as your eBook reader.
2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
3 Transfer the downloaded file to your phone in the standard way.
Recommended eBooks:
1 eReader http://www.ereader.com/product/detail/18841?refid=45377
Formats: eReader, Doc.
2 MicroReader http://home.c2i.net/thvoslef/midlets/mrinfo.html
For java-enabled Siemens mobile phones.
Formats: Doc, TCR, text. Freeware.
3 ReadM http://my-symbian.com/7650/applications/applications.php?faq=18&fldAuto=347
Formats: Doc, TCR, and gzipped text files. Freeware.
4 eBook for Nokia http://www.geocities.com/ebooknokia/
Formats: Doc, TCR, text, and HTML. Freeware.
5 iSilo http://www.isilo.com/
iSilo reads Doc eBooks in addition to its own iSilo format, and it's very easy to convert text, HTML, or DOC files into an iSilo document using free desktop tools.
Formats: Doc and iSilo.Re: Ebooks
Your explanation for adding ebooks to the phone:
"3 How to read eBook on Nokia
1 Download and install the Ebook for Nokia to use as your eBook reader.
2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
3 Transfer the downloaded file to your phone in the standard way."
Well the only way I know how to put ANYTHING on there is ZOON and ZOON DOES NOT HAVE AN OPTION IN IT FOR EBOOKS THAT I CAN SEE.
How is "IN THE STANDARD WAY" supposed to be of any use or help to me whatsoever when STANDARD WAY FOR EBOOKS IS NOT EVIDENT TO ME??? -
How to get the list of users who has access for list of tcodes.
How to get the list of users who has access for list of tcodes.
Go to transaction SUIM, this has a number of reports for users/authorisations
open the Where used>Autorization Values>In Users
and double click to execute
in authorisation object, enter S_TCODE
then press the "Enter Values" button
It will offer entry boxes to put the transaction code you are interesed in.
Then execute and the list of users with access to this transaciton code will be returned. -
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
How to get the list of active devices in current wifi network?
Hi All,
I am going to a start a new Network based app. So please any one give me an idea on the below question.
How to get the list of active devices in current wifi network?Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks -
How to put the alv output into the spool request?
Hi guys,
How to put the alv output into the spool request?
Thanks!Hi
Sending an ALV List screen output to SPOOL
Convert ALV list to PDF and send mails to respective persons
Regards
Pavan -
How do I get list of client IP Addresses using new Airport Utility v6.3?
I have purchased and Airport Time Capsule 3TB (newest model). Previous models were still compatible with Airport Utility 5.6 and I could use "manual" mode to get a list of client IP addresses attached to the device. The new Airport Time Capsule is only compatible with Airport Utility 6.3 and I cannot figure out how to get a list of client IP addresses with this new model. Does anyone know how to do this?
Try a ping broadcast - for example if your network were 192.168.1.xxx (netmask of 255.255.255.0) try this from a Termnal.app window (located in /Applications/Utilities):
ping 192.168.1.255
If you have a different type netmask, you need to put 255's where the 0's are in your netmask.
Everyone on the local network (the 192.168.1.xxx network) should reply that is up and running unless you have them setup to not respond to pings (the WAN port on your TC should not reply cause it's in a different network) and you have your list of clients on the network. If you setup the TC to dedicate a range of addresses for WiFi clients you can even identify which of them are wired and which are wireless.
good luck.
Maybe you are looking for
-
I can no longer "edit in" CS5 from LR4 with RAW files
I can send jpeg files to CS5 via "edit in" but I can't send RAW files. PS is launched but the photos are never opened. I recently upgraded my camera to a Nikon D800, but I can't remember if the problem started just before I upgraded.
-
HT5634 boot camp 3.1 will not install
I have upgraded my operating system to Windows 7 Ultimate from Windows Vista Ultimate. When I use apple update on the windows operating system, it shows that there is an update for boot camp. I have bootcamp 3.0 and the update is 3.1. However, aft
-
Have a new 7520 All-in-one. Tried to fax to 2 numbers. Operation seemed normal but after many rings I got a "No Answer" message and printout. Both numbers swear their faxes are on. I then tried to set up a .pdf. I scanned the document and selecte
-
How do I save a document that says it is a web archive
I signed up to convert pdfs into word format but now I don't know how to save the converted document into my files. It says it is a web archive and I cannot work with the document. I can't cut and paste. What do I need to do?
-
Mac 10.5.8 browsers crashing – applications not responding
Hello, I'm having big problems with my Mac 10.5.8. I tried verifying the disk on Disk Utliity but no errors showed up. Basically, my browsers (Safari, Firefox, Google Chrome) crash as soon as they are opened. Some other application stop responding as