Generate sound(voice) from a String
Hello everybody.
I would like to generate sound from a String at Symbian devices automaticaly. I wil receive the value of this String remotely and then it will be generated to a sound.
The String will not be very long (3 to 4 words).
For example,
String test="Hello everybody";Is it possible via J2ME API?
Or do I need any external library?
Regards,
kalgik
You can't easily do it... you can using reflection:
MyStaticClass.class.getField().getXXX("MyVariable") //depending on what type the field is...But this seems like it may be a flawed design. Maybe you should try making a static HashMap in the class, use a Static init block and static get/set methods:
public class StaticClass
static Map properties;
static
properties = new HashMap();
properties.put("MyVariable", "Some Value");
properties.put("OtherVariable", new Integer(3));
public static Object get(String property)
return properties.get(property);
public static void set(String property, Object value)
//Maybe some code checking to make sure object is right type
//or don't use a set method at all to make the properties immutable
properties.put(property, value);
}
Similar Messages
-
Generate variable name from a String
I've got a String "MyVariable" and I need to reference a static variable named MyStaticClass.MyVariable. How do you turn a String into a variable name?
You can't easily do it... you can using reflection:
MyStaticClass.class.getField().getXXX("MyVariable") //depending on what type the field is...But this seems like it may be a flawed design. Maybe you should try making a static HashMap in the class, use a Static init block and static get/set methods:
public class StaticClass
static Map properties;
static
properties = new HashMap();
properties.put("MyVariable", "Some Value");
properties.put("OtherVariable", new Integer(3));
public static Object get(String property)
return properties.get(property);
public static void set(String property, Object value)
//Maybe some code checking to make sure object is right type
//or don't use a set method at all to make the properties immutable
properties.put(property, value);
} -
Generate key or filename basedon strings, regardless of order
I have a fundamental question that seems like it would have a simple answer, but I'm just not seeing it.
I need to generate a key from two strings, and the key must be the same regardless of the order of the strings, so long as they are the same strings.
E.g. consider the following method:
public static String generateKey(String s1, String s2);This method should return a key based on the two strings passed in. If the strings are in a different order, but are the same, it should generate the same key.
A simple answer seems like simply using the lexographical order of the strings and appending them. E.g. "foo" and "bar" would always retury "bar-foo" - which is easy enough by simply comparing the strings.
I'm looking for a more elegant algorithm to generating this string, such as hashes or th e like.
Any suggestions?
Thanks.[code[
public static String generateKey(String s1, String s2)
int h1 = s1.hashCode() ;
int h2 = s2.hashCode() ;
return (h1<h2) ? (s1+s2) : (s2 + s1);
[code[ -
How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?
How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?
In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app. Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.
-
I have to generate a 4 char unique string from a long value
I got a requirment
I have to generate a 4 char unique string from a long value
Eeach char can be any of 32 character defined has below.
private static final char char_map[] = new char[]{'7','2','6','9','5','3','4','8','X','M','G','D','A','E','B','F','C','Q','J','Y','H','U','W','V','S','K','R','L','N','P','Z','T'};
So for 4 char string the possible combination can be 32 * 32 * 32 * 32 = 1048576
If any one passes a long value between 0 - 1048576 , it should generate a unique 4 char string.
Any one with idea will be a great help.Well, a long is 64 bits. A char is 16 bits. Once you determine how you want to map the long's bits to your char bits, go google for "java bitwise operators".
-
How can I separate voice from game sounds in a audio channel?
Hello, I have Adobe Premiere Pro CS6 and I want to know how can I separate my voice from the game audio from a video gameplay who are in the same audio channel.
As far as I know this cannot be done. Unless you do some really, REALLY intense editing in Adobe Audition.
I am a fellow lets-player and what I do is record my microphone input with a free-ware program called Audacity and record the game sounds with Mirillis Action! (or FRAPS, whatever you use). This way my voice and the game sounds are seperate. -
How to generate .wav files from sound pressure data
Hi,
I have sound pressure data (as dB values) vs frequency data.
How can I create a playable .wav file based on above?
Note: I do NOT have sound pressure vs time data
I am working in LV 7.1 FDS on Win2000.
If really required, I can incorporate VIs from sound and vibration toolkit (version 1.0).
However, I would prefer a solution that does not need me to do that.
Thanks in anticipation,
Gurdas
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.eduAll,
With some help from NI-India, we managed to build a nice sound player and .wav saving utility.
I have attached the VI sent by NI-India. The key component which was missing in my VI was "resample waveform".
Note: For some reason, I could not use the attached VI to generate sound but did use the concept to succesfully read my sound pressure data and output it to the speaker (and also save it as .wav file tha can be played on Windows Media Player). Also note that I am now generating sound from sound pressure vs time data. I have not tried generating sound from sound pressure vs frequency data.
I would love to have the following answered:
1) What data does the sound write VI expect? Is it Sound Pressure values? What units (N/m2 or dB or dBA)? I think it expects sound pressure data and the units are not relevant. Reason being my next question.
2) I found that until I mutliply the sound pressure data by a very large number say 10e7, the sound is hardly audible (even when volume was programmatically set to max. i.e. 65535). The sound QUALITY does not change when I change this multiplier.
2.a) Does that mean its only the relative difference between wave data points that affects sound quality? If yes, then I believe the sound pressure data can be in any units.
2.b) Is it expected to use this huge multiplier OR did I do something without really knowing what it meant?
Thanks,
Gurdas
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu
Attachments:
Sound from FFT (LV 8).vi 165 KB -
My iPod Classic was working fine all day. Came home and uploaded 2 files via iTunes, now there is no sound coming from my iPod. I've tried both headphones and a docking station......nothing. The songs don't even engage, they skip to the next one. I've tried rebooting the iPod and still nothing. Any ideas?
KimHi, and welcome to Apple Discussions.
Have you tried resetting the PMU?
I'm not optimistic that this will help any more than the procedures you've already tried, but it won't hurt to try.
Do you still have your OS 9 installation? If so, try booting into OS 9 and see if the problems with the audio are happening there, too. If so, you can bet it's a hardware problem.
How big is your hard drive and how much space remains available on it? If you don't have your OS 9 installation in order to check out whether it's a hardware problem and you have enough available hard drive space, you may want to try an Archive and Install of the OS in order to make sure it isn't an OS X system-wide problem. If that doesn't do it, you could back up your hard drive and restore your software.
All of this may just be spinning your wheels, but it's all stuff you can try before shelling out a lot of money for repairs. -
How to record generated sound to a file ?
I have a program that can generate sound, I can hear the sound sequence from my headphone, now I'm trying to save the generated sound to an .au file, it should have a few seconds of sound, but instead I just heard a short beep, seems it didn't record the whole sequence, can someone tell me why ? Here are some code segments :
static byte audioData[];
class Command_Demo_Morse_Code implements Command
JTextArea taText;
//The following are audio format parameters. They may be modified by the signal generator at runtime. Values allowed by Java SDK 1.4.1 are shown in comments.
float sampleRate=16000f; // Allowable 8000,11025,16000,22050,44100
int sampleSizeInBits=16; // Allowable 8,16
int channels=2; // Allowable 1,2
boolean signed=true; // Allowable true,false
boolean bigEndian=true; // Allowable true,false
Command_Demo_Morse_Code(JTextArea taText) { this.taText=taText; }
public void exec()
try
String Morse_Code,Word_Code_String="",Space=" ",Result_Morse_Code="",Output_English="",
Input="01";
Input=Input.toUpperCase();
Word_Code_String+="\n Input = "+Input+"\nMorse_Code = \n";
Nm_Lib.audioData=new byte[16000*4*5]; // A buffer to hold two seconds monaural and one second stereo data at 16000 samp/sec for 16-bit samples [ 5 seconds ]
for (int i=0;i<Input.length();i++)
Morse_Code=Nm_Lib.Get_Morse_Code(Input.charAt(i)+"",true);
Result_Morse_Code+=Morse_Code+Space;
taText.append("\n ["+Input.charAt(i)+"] = ["+Morse_Code.replace("\n"," ")+"]");
// Make_Morse_Code_Sound(String A_Morse_Code,int Pitch,int Speed) // Pitch : 1 - 10 Speed : 1 - 10
Nm_Lib.Make_Morse_Code_Sound(Morse_Code.replace("\n"," "),5,5,Nm_Lib.audioData);
Result_Morse_Code=Result_Morse_Code.replace("\n"+Space,"/").replace("null","\n").replace("�",".");
Word_Code_String+=Result_Morse_Code;
taText.append(Word_Code_String+"\n\n");
Output_English=Nm_Lib.Get_English_From_Morse_Code(Result_Morse_Code);
Nm_Lib.Out("English = "+Output_English);
taText.append("English = "+Output_English);
// Get the required audio format
AudioFormat audioFormat=new AudioFormat(sampleRate,sampleSizeInBits,channels,signed,bigEndian);
// Get an audio input stream from the ByteArrayInputStream
AudioInputStream audioInputStream=new AudioInputStream(new ByteArrayInputStream(Nm_Lib.audioData),audioFormat,Nm_Lib.audioData.length/audioFormat.getFrameSize());
//Write the data to an output file with the name provided by the text field in the South of the GUI.
AudioSystem.write(audioInputStream,AudioFileFormat.Type.AU,new File(Nm_Lib.Dir_Data+"Morse_Code_Sound.au")); // ??? Save to sound file not working ?
catch (Exception e) { e.printStackTrace(); }
//====================================================================================================================
public static void Make_Sound(int Hz,int Milli_Seconds,byte[] synDataBuffer) throws LineUnavailableException
ByteBuffer byteBuffer=null;
ShortBuffer shortBuffer=null;
if (synDataBuffer!=null)
byteBuffer=ByteBuffer.wrap(synDataBuffer); // Prepare the ByteBuffer and the shortBuffer for use
shortBuffer=byteBuffer.asShortBuffer();
// int byteLength=synDataBuffer.length;
float Sample_Rate=8000f;
byte[] buf = new byte[1];
AudioFormat af = new AudioFormat(Sample_Rate,8,1,true,false);
SourceDataLine sdl = AudioSystem.getSourceDataLine(af);
sdl.open(af);
sdl.start();
for (int i=0;i<Milli_Seconds*8;i++)
double angle=i/(Sample_Rate/Hz)*2.0*Math.PI;
buf[0]=(byte)(Math.sin(angle)*110.0);
sdl.write(buf,0,1);
if (synDataBuffer!=null) shortBuffer.put((short)(200*buf[0]));
// Out(i+" shortBuffer = "+shortBuffer.toString());
sdl.drain();
sdl.stop();
sdl.close();
public static void Make_Morse_Code_Sound(String A_Morse_Code,int Pitch,int Speed,byte[] synDataBuffer) // Pitch : 1 - 10 Speed : 1 - 10
Out("A_Morse_Code = "+A_Morse_Code); // [R] = [�-� ]
if (Speed<0) Speed=0;
else if (Speed>10) Speed=10;
int One_Unit_Time=100-9*Speed;
try
for (int i=0;i<A_Morse_Code.length();i++)
switch (A_Morse_Code.charAt(i))
case '�' : Make_Sound(300+60*Pitch,One_Unit_Time,synDataBuffer);break; // 1. short mark, dot or 'dit' (�) � one unit long // '�' != '.'
case '-' : Make_Sound(300+60*Pitch,3*One_Unit_Time,synDataBuffer);break; // 2. longer mark, dash or 'dah' (�) � three units long
case ' ' : Thread.sleep(7*One_Unit_Time);break; // 5. medium gap (between words) � seven units long
case '?' : Make_Sound(100+60*Pitch,5*One_Unit_Time,synDataBuffer);break;
default : Make_Sound(100+60*Pitch,5*One_Unit_Time,synDataBuffer);break;
Thread.sleep(One_Unit_Time); // 3. intra-character gap (between the dots and dashes within a character) � one unit long
Thread.sleep(3*One_Unit_Time); // 4. short gap (between letters) � three units long
catch (Exception e) { }
}how to read from a file ? Probably the easiest way is to see the API documentation for java.io.BufferedReader
how to delete an item from a file Not knowing what kind of "item" it is I'd suggest building a BufferedReader that reads your input file. Walk through it one line at a time using the readLine method and if the item is not there then write it to a new file. When you get to the item you want to delete just don't write it out.
Further information on how to use file streams can be found here: http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html -
Generating a report from RTF template using WSDL from ADF
Hi,
I am a newbie to ADF-BIP integration.
I am using the wsdl http://<<ip>>:<<port>>/xmlpserver/services/PublicReportService?WSDL for generating a report from RTF Template in ADF.
We are using Oracle Business Intelligence Publisher Release 11g (11.1.1) and JDeveloper 11g (11.1.1.5.0).
I have a couple of merge variables in my RTF template and I am passing these variable using Report Request parameters.
below is code I added for creating the report request.
First I created publicReportService using webservice proxy.
public static ReportRequest getReportRequestFromBIPWithTemplate(String reportFolderOnBIP,
String reportName,
String outputFileFormat,
String template,
HashMap params) {
String reportAbsolutePath = reportFolderOnBIP + "/" + reportName + ".xdo";
ReportRequest repRequest = new ReportRequest();
System.out.println("report path: " + reportAbsolutePath);
repRequest.setReportAbsolutePath(reportAbsolutePath);
repRequest.setAttributeTemplate(template);
repRequest.setAttributeFormat(outputFileFormat);
repRequest.setAttributeLocale("en-US");
repRequest.setSizeOfDataChunkDownload(-1);
System.out.println(params.size());
ParamNameValue[] paramNameValue = new ParamNameValue[params.size()];
ArrayOfParamNameValue arrayOfparamNameValue = new ArrayOfParamNameValue();
Set set = params.entrySet();
Iterator iter = set.iterator();
int i = 0;
while (iter.hasNext()) {
Map.Entry me = (Map.Entry)iter.next();
System.out.println(i + "--->>>" + me.getKey() + " : " + me.getValue());
paramNameValue[i] = new ParamNameValue();
paramNameValue.setMultiValuesAllowed(false);
ArrayOfString values = new ArrayOfString();
if (me.getValue() == null) {
values.getItem().add("");
} else {
values.getItem().add((me.getValue()).toString());
paramNameValue[i].setValues(values);
paramNameValue[i].setName((me.getKey()).toString());
arrayOfparamNameValue.getItem().add(paramNameValue[i]);
i++;
repRequest.setParameterNameValues(arrayOfparamNameValue);
return repRequest;
I generated report response bytes using below code
{code:java}
repRes = publicReportService.runReport(repReq,userID,password);
reportStream = repRes.getReportBytes();I could see the generated PDF but the supplied variables are NOT reflected in place of merge variables.
Ex: In template
Welcome, <<merge variable, userName>>
{code}
Generated PDF should have
{code:java}
Welcome, Hello World
{code}
Instead of the above I am getting
{code:java}
Welcome,
{code}
I am looking for a suggestion, Please help me in this regard.
Thanks,
Satya
Edited by: 921138 on May 30, 2012 11:11 PMPlease let me know if any one has update for this.
Thanks in advance,
Satya -
Generate a url from a report or function module
Hi,
I'm trying to generate a url from a report and tried using the function module WWW_ITAB_TO_HTML in the report program, as , but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue. Thanks in advance.
DATA: emp_name TYPE char80.
DATA: it_itabex TYPE zdb_ex_tty,
it_emp TYPE TABLE OF zis_emp,
it_org TYPE TABLE OF zis_org,
it_pos TYPE TABLE OF zis_pos,
it_pos_alloc TYPE TABLE OF zis_pos_alloc,
it_res TYPE TABLE OF zis_res,
it_res_alloc TYPE TABLE OF zis_res_alloc,
ls_itabex TYPE zdb_ex_s.
DATA: lv_filename TYPE string,
lv_path TYPE string,
lv_fullpath TYPE string,
lv_replace TYPE i.
DATA qstring LIKE it_itabex OCCURS 10.
DATA: url(200), url2(200), url3(200), fullurl(200).
FIELD-SYMBOLS: <fs_emp> LIKE LINE OF it_emp,
<fs_org> LIKE LINE OF it_org,
<fs_pos> LIKE LINE OF it_pos,
<fs_pos_alloc> LIKE LINE OF it_pos_alloc,
<fs_res> LIKE LINE OF it_res,
<fs_res_alloc> LIKE LINE OF it_res_alloc.
** Report Program to export data from database to Excel.
** Populate all the tables that have to be exported.
SELECT * FROM zis_org INTO TABLE it_org.
SELECT * FROM zis_pos INTO TABLE it_pos.
SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
SELECT * FROM zis_emp INTO TABLE it_emp.
SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
SELECT * FROM zis_res INTO TABLE it_res.
** Append the Column Header
CLEAR ls_itabex.
ls_itabex-ipp_pos_id = 'IPP Pos ID'.
ls_itabex-emp_name = 'Name'.
ls_itabex-dt_of_join = 'JoinedOn'.
ls_itabex-emp_status = 'Status'.
ls_itabex-org_name = 'Org'.
ls_itabex-prj_name = 'Project'.
ls_itabex-mgr_name = 'Line'.
ls_itabex-designation = 'Designation'.
ls_itabex-specialization = 'Specialization'.
APPEND ls_itabex TO it_itabex.
** Append all the tables into one internal table
LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
CLEAR ls_itabex.
ls_itabex-ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
IF sy-subrc = 0.
CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name SEPARATED BY space.
ls_itabex-dt_of_join = <fs_emp>-dt_of_join.
ls_itabex-emp_status = <fs_emp>-emp_status.
ls_itabex-specialization = <fs_emp>-specialization.
ENDIF.
READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
IF sy-subrc = 0.
ls_itabex-designation = <fs_pos>-designation.
READ TABLE it_org ASSIGNING <fs_org> WITH KEY org_id = <fs_pos>-org_id.
IF sy-subrc = 0.
ls_itabex-org_name = <fs_org>-org_name.
ls_itabex-mgr_name = <fs_org>-mgr_name.
ENDIF.
ENDIF.
READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
ls_itabex-org_name = <fs_org>-org_name.
APPEND ls_itabex TO it_itabex.
ENDLOOP.
url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
url2 = '&~OkCode(LGON)=LGON&login-login_user='.
url3 = '&vbcom-vbeln='.
CONCATENATE url url2 url3 INTO fullurl.
WRITE: /'Staffing Excel'.
CALL FUNCTION 'WWW_SET_URL'
EXPORTING
offset = 12
length = 10
func = fullurl
TABLES
query_string = qstring
EXCEPTIONS
invalid_table = 1
OTHERS = 2.
Thanks & Regards,
Preethi.Check the below example program :
data: begin of itab occurs 0,
matnr type mara-matnr,
mtart type mara-mtart,
matkl type mara-matkl,
groes type mara-groes,
end of itab.
data: ifields type table of w3fields with header line.
data: ihtml type table of w3html with header line.
select * into corresponding fields of table itab
from mara up to 100 rows.
call function 'WWW_ITAB_TO_HTML'
EXPORTING
TABLE_ATTRIBUTES = 'BORDER=1'
TABLE_HEADER =
ALL_FIELDS = 'X'
tables
html = ihtml
fields = ifields
ROW_HEADER =
itable = itab
check sy-subrc = 0.
call function 'GUI_DOWNLOAD'
exporting
filename = 'c:\test.html'
tables
data_tab = ihtml.
Reward points if it is helpful
Thanks
Seshu -
Conversion failed when converting date and/or time from character string
Hi experts,
I'm trying running a query in Microsoft Query but it gives the following error message:
"conversion failed when converting date and/or time from character string"
when asks me the data I'm inserting 31-01-2014
i've copy the query form the forum:
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
The above error appears due to date format is differnt from SAP query generator and SQL server.
So you need convert all date in above query to SQL server required format.
Try to convert..let me know if not possible.
Thanks & Regards,
Nagarajan -
Error while Generating WSDL File from SAP WSDLGenerator
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WebServiceDescription.SelectOperation.ShowUDOsList(String sessionID)
at WebServiceDescription.SelectOperation..ctor(String sessionID)
at WebServiceDescription.WsdlServicesGenerator.ShowOptions()
at WebServiceDescription.Form1.btCreateWsdl_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
WsdlServicesGenerator
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One%20Web%20Services/WsdlServicesGenerator/WsdlServicesGenerator.exe
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
axh7tjvl
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
o_2nbqv_
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I am facing problem While Generating WSDL File from WSDL Geerator which is provided by SAP Business One
If any body has resolved this. Please help Me...!
Thanks
MritunjayHi.
We've seen that error too few times.
We downloaded the sourcecode for the wdsl generator and discovered,
that in our case, it was because we had no user defined objects.
Its actually a bug as far as I can see, where the wdsl generator tries
to enumerate a empty recordset, and crashes.
Regards
Jørgen T. -
Error while Generating PDF file from Datagridview .
Hi every one,
I'm trying to generate pdf file from datagridview,while executing my code getting nullvalue exception..
Here is my code:
private void btnexportPDF_Click(object sender, EventArgs e)
//Creating iTextSharp Table from the DataTable data
PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
pdfTable.DefaultCell.Padding = 3;
pdfTable.WidthPercentage = 30;
pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
pdfTable.DefaultCell.BorderWidth = 1;
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
pdfTable.AddCell(cell);
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
foreach (DataGridViewCell cell in row.Cells)
pdfTable.AddCell(cell.Value.ToString());//nullvalue exception
//Exporting to PDF
string folderPath = "C:\\PDFs\\";
if (!Directory.Exists(folderPath))
Directory.CreateDirectory(folderPath);
using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
PdfWriter.GetInstance(pdfDoc, stream);
pdfDoc.Open();
pdfDoc.Add(pdfTable);
pdfDoc.Close();
stream.Close();
Thanks & Regards RAJENDRAN MHi Rajendran,
The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
http://support.itextpdf.com/forum
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Setting the name of a new object from a string
Is there anyway I can set the object name of a newly created
object from a string?
eg.
(the code below generates a compile time error on the
variable declaration)
public function addText(newTxt:String, txt:String,
format:TextFormat):void {
var
this[newTxt]:TextField = new TextField();
this[newTxt].autoSize = TextFieldAutoSize.LEFT;
this[newTxt].background = true;
this[newTxt].border = true;
this[newTxt].defaultTextFormat = format;
this[newTxt].text = txt;
addChild(this[newTxt]);
called using>
addText("mytxt", "test text", format);
I could then reference the object later on without using
array notation using mytxt.border = false; for example
There are many a time when I want to set the name of a new
object from a string.
In this example I have a function that adds a new text object
to a sprite.
The problem is, if I call the function more than once then
two textfield objects will exist, both with the same name. (either
that or the old one will be overwritten).
I need a way of setting the name of the textfield object from
a string.
using
var this[newTxt]:TextField = new TextField()
does not work, If I take the "var" keyword away it thinks it
a property of the class not an object.
resulting in >
ReferenceError: Error #1056: Cannot create property newTxt on
Box.
There must be a way somehow to declare a variable that has
the name that it will take represented in a string.
Any help would be most welcome
ThanksUsing:
var this[newTxt]:TextField = new TextField()
is the right approach.
You can either incrment an instance variable so that the name
is unique:
newTxt = "MyName" + _globalCounter;
var this[newTxt]:TextField = new TextField();
globalCounter ++;
Or store the references in an array:
_globalArray.push(new TextField());
Tracy
Maybe you are looking for
-
HT4722 How many computers can you install Final Cut on
How many computers can you install Final Cut on with one license or purchase?
-
Firefox says that I have a firewall that prevents me from connecting to Internet?
I´ve used Firefox for a while now and I was really happy until now it just won´t work any more. When i try to connect to Internet with firefox I get a message "Connection failed" My firewall is preventing me from connecting according Firefox. But I´v
-
How to change the UniqueID of the primary user account?
A friend brought to me a MacBook Pro he'd just bought so I can set it up for him. The primary (only) user on it was named User, and he didn't know the password. I reset the password using Terminal from the Recovery partition. Then I changed the accou
-
Resend Text Settings question - N8 Belle
Is there a way i can set the resend time for txt? you know when the message failed to send it will automatically send message again after 5mins, but 5 mins is too long., i want it to resend after a minute or so. 5 mins and this resend became so usele
-
I just had to change my Google password and now I am not receiving email on my Iphone 5s--all updates current What do I do????