Jump to content

User talk:Bibekananda

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Developing Macro for Microsoft Word using Visual Basic:

Step 1: Open a MSWord document. Step 2: Goto Tool--> Macro --> Visual Basic Editor or press Alt + F11 key together. Step 3: Write the Visual Basic Macro code in the Visual Basic Editor as follows:

Sub Macro_Name()




End Sub

Step 4:

  Goto Tool-->Customize...

Step 5:

   Under Customize goto  Commands Tab
   Select Macros from Categories:
   Select the specific MacroName form the     

Commands: and drag and drop to the selected Tool bar. Step 6: Write click on the selected Object

           Change the Name
           Click on Change Button Image from the dropdown Menu and select an image.



Below is the macro for Transliterating Bangla Unicode Text to Hindi Unicode Text:

Sub Hindi_Transliterate()

   Dim k As Integer, l As Integer
   Dim w As String, uni_char As String
   w = ""
   Dim char_val As Integer
   
   
   For k = 1 To ActiveDocument.Characters.Count
   
        uni_char = ActiveDocument.Characters(k)
        For l = 1 To Len(uni_char)
          
          char_val = AscW(Mid(uni_char, l, 1))
          If char_val > &H980 And char_val < &H9FF Then
            w = w + ChrW(char_val - 128)
          Else
            w = w + ChrW(char_val)
          End If
          
         Next
   'Selection.TypeText Text:=uni_char
   Next k
   
   Selection.Font.Name = "Mongal"
   Selection.TypeText Text:=w
   

End Sub

How to call dll from PHP (Accessing your COM in Webpage)

[edit]

How to call dll from PHP (Accessing your COM in Webpage)

Step1 : Develop your application as COM component ( Such as ocx or dll using Visual Basic, vc++, c , c++ …) If you develop ocx , user need to download that ocx in there machine and register in their machine, in case of dll no need to down load this. Step2: Register your “dll” in your machine as follows:

           Goto Star Run
           Type regsvr32 path\dllname.dll

Step3: Simple example for creating your own dll's which can be called as COM objects in PHP:

First create your ActiveX dll (Visual Basic): Name your project as "X" and class as "Y".

Write VB code as follows: ‘-------------------------------------------------- Public Function display() As String

  display = "My Name is Bibekananda"

End Function '------------------------------------------------

Then make the dll and register it with regsvr32.exe

Now create your PHP script:

<?php $obj = new COM("X.Y"); $output=$obj-> display (); // Call the " display ()" method echo $output; // My Name is Bibekananda ?>  Here is an example for using utf-8 and vbdll using php Morph.html <html> <meta charset='UTF-8'> <form action="test.php" method="post"> Bengali Sentence: <input type="text" name="name">

<input type="submit" value="Submit"> </form> </html> test.php <html> <meta charset='UTF-8'>

<?php

$name=$_POST['name'];

$filename="C:\\dll_file\\file1.txt"; $nonfilename=" C:\\dll_file\\file2.txt"; $otherfilename=" C:\\dll_file\\file3.txt"; $suffilename=" C:\\dll_file\\file4.txt"; $delimiter="#"; $t_file=" C:\\dll_file\\file5.txt"; $p_file=" C:\\dll_file\\file6.txt";

$word= new COM("mydllproj.mydllclass") or die("Unable to create dll"); print $word->mydllfun($name,$ filename,$delimiter,$t_file,$p_file);

?> </body> </html>

Bibekananda 08:30, 8 February 2007 (UTC)[reply]

Image:How_to_call_dll_from_PHP.pdf listed for deletion

[edit]

An image or media file that you uploaded or altered, Image:How_to_call_dll_from_PHP.pdf, has been listed at Wikipedia:Images and media for deletion. Please look there to see why this is (you may have to search for the title of the image to find its entry), if you are interested in it not being deleted. Thank you. User:Gay Cdn (talk) (Contr) 21:47, 25 May 2007 (UTC)[reply]

Image:How_to_Read_MS.Excel_File_using_Visual_Basic_6.pdf listed for deletion

[edit]

An image or media file that you uploaded or altered, Image:How_to_Read_MS.Excel_File_using_Visual_Basic_6.pdf, has been listed at Wikipedia:Images and media for deletion. Please look there to see why this is (you may have to search for the title of the image to find its entry), if you are interested in it not being deleted. Thank you. User:Gay Cdn (talk) (Contr) 21:48, 25 May 2007 (UTC)[reply]

Image:Amar_mone_pora_dingulo.pdf listed for deletion

[edit]

An image or media file that you uploaded or altered, Image:Amar_mone_pora_dingulo.pdf, has been listed at Wikipedia:Images and media for deletion. Please look there to see why this is (you may have to search for the title of the image to find its entry), if you are interested in it not being deleted. Thank you. User:Gay Cdn (talk) (Contr) 21:50, 25 May 2007 (UTC)[reply]

Image:BIBEKSOM.gif listed for deletion

[edit]

An image or media file that you uploaded or altered, Image:BIBEKSOM.gif, has been listed at Wikipedia:Images and media for deletion. Please see the discussion to see why this is (you may have to search for the title of the image to find its entry), if you are interested in it not being deleted. Thank you. rimshotstalk 13:05, 30 May 2007 (UTC)[reply]