Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:05:47+00:00 2026-06-03T00:05:47+00:00

I have a PowerBuilder app that creates informs and save then as PDF with

  • 0

I have a PowerBuilder app that creates informs and save then as PDF with PDFCreator. After that, I want to send those files by mail, using an stored procedure in SQL server 2008.

For example, I have 50 informs. I want to:
– Save all to pdf (50 pdf files – PowerBuilder app)
– Send them by mail (stored procedure – SQL)

I save every inform with a DataWindow (.saveAs method):
dw_1.saveAs(ls_path, PDF!, true)

If I try to run the app and, after that, run the stored procedure, the saving-to-pdf-process is much slower than the execution time of the app, so I cannot send the files by mail, because they have not been created yet… 🙁

What can I do? Any ideas?

Thx a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:05:50+00:00Added an answer on June 3, 2026 at 12:05 am

    Caveat: Haven’t tried this myself.

    I would expect that if you tried to FileOpen() the created PDF with LockReadWrite!, it would fail if the PDF creation process hadn’t finished. So, I would try a loop with a Sleep() in it, exiting when the FileOpen() had succeeded. (Remember to FileClose() on success!) Call the stored proc after the loop exits.

    Good luck,

    Terry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a rails app that is supposed to display a list of products/managers. After
We currently have a number of desktop applications (PowerBuilder, Winforms, WPF) that make use
I have an old PowerBuilder application that we are slowly phasing out. We are
I'm using PowerBuilder and have a problem with the if condition. I want to
So we've an old circa 2000 Powerbuilder App that we've been maintaining all this
Have an app that can use tts to read text messages. It can also
I have some unit tests set up in my PowerBuilder application that run through
Have a (rather complex) app that works fine on iOS 4 but fails on
I'm working on a legacy PowerBuilder app, we have upgraded to PowerBuilder 12 but
We have an existing legacy app written in C++/powerbuilder running on Unix with it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.