Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info.
SEARCH THE FOXITE.COM VISUAL FOXPRO FORUM ARCHIVES
Please enter one or more search terms:
search (case insensitive):


order by:


sort:
SEARCH RESULT Results 11676 - 11700 of 14622 for Excel. (1.3104084 seconds)


RE: RunAndWait()
Thread ID: 114632 Mike Gagnon RE: RunAndWait() Try make a call with something other than notepad. Try using Excel. I too cannot get notepad to open with your code. = RunAndWait("C:\program files\Microsoft Office\Office10\excel.exe", "") This makes me crazy... I put just the code (declares, the call to RunAndWait, and the procedure and function) in a clean .prg, and made the call: > = RunAndWait("C:\Windows\Notepad.exe", '') > and got the same error. > Did you use the code directly from the message, or from another source? > Thanks, Dave > I have tested your code (or Anatoliy Mogylevets') with a program I have on my system (Like Excel) and it works fine. I am not sure why notepad

RE: RunAndWait()
Thread ID: 114632 Dave Dawson RE: RunAndWait() With Excel, it brings up the splash screen then goes away, but no error message. Thanks, Dave Try make a call with something other than notepad. Try using Excel. I too cannot get notepad to open with your code. = RunAndWait("C:\program files\Microsoft Office\Office10\excel.exe", "") This makes me crazy... I put just the code (declares, the call to RunAndWait, and the procedure and function) in a clean... Mogylevets') with a program I have on my system (Like Excel) and it works fine. I am not sure why notepad would not work on your system. Make you sure you do not use Beautify on your code, as API calls are case sensitive. > I detect

RE: Runing Client Access Data Transfer from AS/400
Thread ID: 61606 Jim Winter RE: Runing Client Access Data Transfer from AS/400 Hi, > I need run an IBM Client Access Data Transfer from AS/400 in a prg program. I am using _ShellExecute ("File.DTF"), and is working. The Data Transfer fr...

RE: Runing Client Access Data Transfer from AS/400
Thread ID: 61606 Jim Winter RE: Runing Client Access Data Transfer from AS/400 FUNCTION CheckFinished lcComputer = '.' loWMIService = Getobject('winmgmts:' ; + '{impersonationLevel=impersonate}!\\' + lcComputer + '\root\cimv2') c...

RE: Running Excel file(2007)
Thread ID: 275937 tushar RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali Search for ShellExecute in the archives here. Regards Tushar

RE: Running Excel file(2007)
Thread ID: 275937 Bhushan Sahni RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali Hi Vaishali, Please use the following code. x=CREATEOBJECT("Excel.Application") x.Workbooks.Open("e:\PathofFile\FileName.xlsx") x.Visible=.t. Regards Bhushan Sahni Eitzen Group (IT) bsh@eitzen-group.com Visual Foxpro a dream house for developers

RE: Running Excel file(2007)
Thread ID: 275937 vaishali maske RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali > Search for ShellExecute in the archives here. > Regards Tushar Hello Tushar I dont understand what are you saying?Where is this ShellExecute can you tell me?where I have to search this? Regards, vaishali

RE: Running Excel file(2007)
Thread ID: 275937 Samir H. RE: Running Excel file(2007) > Search for ShellExecute in the archives here. > Regards Tushar > > Hello Tushar > I dont understand what are you saying?Where is this ShellExecute can you tell me?where I have to search this? > Regards, vaishali http://www.foxite.com/articles/read.aspx?id=60&document=introducing-shellexecute Regards Samir

RE: Running Excel file(2007)
Thread ID: 275937 Cetin Basoz RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali declare long ShellExecute in "shell32.dll" ; long hwnd, string lpszOp, ; string lpszFile, string lpszParams, ; string lpszDir, long nShowCmd local lcFileName lcFileName = fullpath('opbal.xls') ShellExecute(0,'Open',m.lcFileName,0,0,1) Cetin Basoz .Net has got better.Think about moving - check my blog: Blog (main) Blog (mirror)

RE: Running Excel file(2007)
Thread ID: 275937 vaishali maske RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali > declare long ShellExecute in "shell32.dll" ; long hwnd, string lpszOp, ; string lpszFile, string lpszParams, ; string lpszDir, long nShowCmd > local lcFileName lcFileName = fullpath('opbal.xls') > ShellExecute(0,'Open',m.lcFileName,0,0,1) > Cetin Basoz .Net has got better.Think about moving - check my blog: Blog (main) Blog (mirror) Hello

RE: Running Excel file(2007)
Thread ID: 275937 Martin Krivka RE: Running Excel file(2007) Hello Experts, > I need to open excel file (version 2007) from foxpro command.My excel file name is "Opbal".I have use following command:- > ! opbal.xls > But this is not working.How to do this pls tell me.Thanks in abvance. > Regards, Vaishali m.cmd=[run start "]+fullpath("opbal.xls")+["] &cmd

RE: Running Excel file(2007)
Thread ID: 275937 tushar RE: Running Excel file(2007) > Search for ShellExecute in the archives here. > Regards Tushar > > Hello Tushar > I dont understand what are you saying?Where is this ShellExecute can you tell me?where I have to search this? > Regards, vaishali In the Foxite Toolbar, click on Home, then on Search. Then search for ShellExecute Excel. Regards Tushar

RE: Running Excel from VFP Menu
Thread ID: 151836 Ken Murphy RE: Running Excel from VFP Menu Dear Experts, > I am trying to put a menu item in a MENU which I expect to launch an instance of EXCEL using:- oEXCEL = CREATEOBJECT("EXCEL.APPLICATION") oEXCEL.VISIBLE = .T. > When the user clicks on the menu item Excel seems to appear and then disappear in a flash. > But oWORD = CREATEOBJECT("WORD.APPLICATION") oWORD.VISIBLE = .T. launches WORD and Word stays on the screen. > Why is Excel Disappearing? What could be the reason? Can someone please Help? > Thanks! kulwant Kulwant, I believe that your variable "oExcel" is going out of scope. Try this instead. _Screen.AddProperty

RE: Running Excel from VFP Menu
Thread ID: 151836 Cetin Basoz RE: Running Excel from VFP Menu Dear Experts, > I am trying to put a menu item in a MENU which I expect to launch an instance of EXCEL using:- oEXCEL = CREATEOBJECT("EXCEL.APPLICATION") oEXCEL.VISIBLE = .T. > When the user clicks on the menu item Excel seems to appear and then disappear in a flash. > But oWORD = CREATEOBJECT("WORD.APPLICATION") oWORD.VISIBLE = .T. launches WORD and Word stays on the screen. > Why is Excel Disappearing? What could be the reason? Can someone please Help? > Thanks! kulwant You forgot to add a workbook. oExcel.Workbooks.add Cetin Basoz

RE: Running Excel from VFP Menu
Thread ID: 151836 Ken Murphy RE: Running Excel from VFP Menu Dear Experts, > I am trying to put a menu item in a MENU which I expect to launch an instance of EXCEL using:- oEXCEL = CREATEOBJECT("EXCEL.APPLICATION") oEXCEL.VISIBLE = .T. > When the user clicks on the menu item Excel seems to appear and then disappear in a flash. > But oWORD = CREATEOBJECT("WORD.APPLICATION") oWORD.VISIBLE = .T. launches WORD and Word stays on the screen. > Why is Excel Disappearing? What could be the reason? Can someone please Help? > Thanks! kulwant > You forgot to add a workbook. > oExcel.Workbooks.add > Cetin Basoz Depends on what the user wants

RE: Running Excel from VFP Menu
Thread ID: 151836 Cetin Basoz RE: Running Excel from VFP Menu > You forgot to add a workbook. > oExcel.Workbooks.add > Cetin Basoz > Depends on what the user wants to do. The user may wish to open an existing Excel file. > Ken You shall know the truth - and the truth shall set you free. (John 8:33) Then workbooks.open. The bottomline is that you need a workbook. PS: Sorry but keeping Excel variable in scope is not a good idea. Get rid of it ASAP. It may have been corrected in one version maybe, if not, that causes interesting C..5 errors or left behind Excel instances. Cetin Basoz

RE: Running Excel from VFP Menu
Thread ID: 151836 Ken Murphy RE: Running Excel from VFP Menu > Depends on what the user wants to do. The user may wish to open an existing Excel file. > Ken You shall know the truth - and the truth shall set you free. (John 8:33) > Then workbooks.open. The bottomline is that you need a workbook. > PS: Sorry but keeping Excel variable in scope is not a good idea. Get rid of it ASAP. It may have been corrected in one version maybe, if not, that causes interesting C..5 errors or left behind Excel instances. > Cetin Basoz Agreed, you do not what to have an instance of Excel hanging about. The few times I do create an Excel object in VFP, I typically do it as a property

RE: Running Excel from VFP Menu
Thread ID: 151836 Vincent Byrne RE: Running Excel from VFP Menu Hi Ken > Agreed, you do not what to have an instance of Excel hanging about. The few times I do create an Excel object in VFP, I typically do it as a property of _Screen. This allows me to give the user a couple of buttons - a "New Excel" button and an "Open Excel" button. I can instantiate the Excel object (without it going out of scope) and later, let the user decide what to do with it. Do be careful about cleaning up that Excel object when you are done with it. > The only problem is if the user closes Excel incorrectly i.e. Red("X") button, it can leave an Excel instance

RE: Running Excel from VFP Menu
Thread ID: 151836 Cetin Basoz RE: Running Excel from VFP Menu Hi Ken > > > Agreed, you do not what to have an instance of Excel hanging about. The few times I do create an Excel object in VFP, I typically do it as a property of _Screen. This allows me to give the user a couple of buttons - a "New Excel" button and an "Open Excel" button. I can instantiate the Excel object (without it going out of scope) and later, let the user decide what to do with it. Do be careful about cleaning up that Excel object when you are done with it. > > The only problem is if the user closes Excel incorrectly i.e. Red("X") button, it can leave an Excel instance

RE: Running Excel from VFP Menu
Thread ID: 151836 kulwant singh RE: Running Excel from VFP Menu > Then workbooks.open. The bottomline is that you need a workbook. > PS: Sorry but keeping Excel variable in scope is not a good idea. Get rid of it ASAP. It may have been corrected in one version maybe, if not, that causes interesting C..5 errors or left behind Excel instances. > Cetin Basoz > Agreed, you do not what to have an instance of Excel hanging about. The few times I do create an Excel object in VFP, I typically do it as a property of _Screen. This allows me to give the user a couple of buttons - a "New Excel" button and an "Open Excel" button. I can instantiate the Excel object

RE: Running Excel from VFP Menu
Thread ID: 151836 Ken Murphy RE: Running Excel from VFP Menu > Agreed, you do not what to have an instance of Excel hanging about. The few times I do create an Excel object in VFP, I typically do it as a property of _Screen. This allows me to give the user a couple of buttons - a "New Excel" button and an "Open Excel" button. I can instantiate the Excel object (without it going out of scope) and later, let the user decide what to do with it. Do be careful about cleaning up that Excel object when you are done with it. > Ken You shall know the truth - and the truth shall set you free. (John 8:33) > Sir, > How can I add the New Exec Button and the Open Excel

RE: Running macros in different modules
Thread ID: 345891 alan shulman RE: Running macros in different modules > > They are in the same file. > Then I suppose that after oExcel.APPLICATION.RUN("Copy_Sheets") the active workbook is changed. > Can you provide a sample to reproduce the behavior? > > Best Wishes, > Yuri Rubinov Here is the excel file containing the macros http://www.foxite.com/uploads/fc5fad76-bb69-4fb7-9bcc-a090af27befa.zip

RE: Running macros in different modules
Thread ID: 345891 Yuri Rubinov RE: Running macros in different modules > Then I suppose that after oExcel.APPLICATION.RUN("Copy_Sheets") the active workbook is changed. > Can you provide a sample to reproduce the behavior? > > Best Wishes, > Yuri Rubinov > > Here is the excel file containing the macros > http://www.foxite.com/uploads/fc5fad76-bb69-4fb7-9bcc-a090af27befa.zip So, you have macros in one workbook, copy sheet from the second workbook into the third workbook, and you do not set activesheet back. Add a line at the sub end: Workbooks("college print individual.xls").Activate Best Wishes, Yuri Rubinov

RE: Russian and English text in table
file with CODEPAGE = 1251 and restarted VFP9 . In the grid I have made a column with binary fieldtype and a column with Varbinary fieldtype. I copy from Excel with Russian text in the grid and in the textboxes , but I see ?????? ??????? in the binary

RE: Russian and English text in table
file with CODEPAGE = 1251 and restarted VFP9 . In the grid I have made a column with binary fieldtype and a column with Varbinary fieldtype. > I copy from Excel with Russian text in the grid and in the textboxes , but I see


Result Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585